Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 3.28 KB

README.md

File metadata and controls

91 lines (66 loc) · 3.28 KB

Powerful Android Validator Crawaler⚔

Validator box library that can inspect any type of form, provides multiple validation functions with an inclusion of clearing views(❁´◡`❁)

Build Status License: MIT Android Arsenal

Validator Crawler, that would help the developers to get two different functionalities i.e validate and clear.

Get started from validation, this library provides multiple functionality having 10+ validate functions. The user have an authority to validate whole form or even single view, procedure is described below. The view includes:

  • Edittext
  • RadioGroup
  • Checkbox (include Multi checklist)
  • Spinner

Secondly, it also provides multiple functions to clear whole form views or single view that are filled. The clearing functionality is work for all above described views including:

  • Switch (Toggle)

Description:✌

Checkout the core functionality from here: AndroidValidatorCrawaler

Some Screens🎞

Pic-1 Pic-2 Pic-3

How to use it??

Implementation🧨

In project.gradle add this code it in root build.gradle at the end of repositories:

dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Now, add the dependency in app.gradle:

dependencies {
    implementation 'com.github.AliAzaz:AndroidValidatorCrawler:X.X.X'
}

Sample Usage🔔

Implement Validation:

    //fldGrpSecA01: is the view group in which whole layout is defined in xml
    Validator.emptyCheckingContainer(this, fldGrpSecA01);

Implement Clear:

//fldGrpSecA01: is the view group in which whole layout is defined in xml
Clear.clearAllFields(fldGrpSecA01);

OUTPUT📇

Removed required error tag from RadioGroup


ValidatorBox Gradle Configuration

  validatorBox = 2.0.0
  gradle = 7.4.2
  kotlin = 1.8.0
  build_version = 34.0.0
  min_api_level = 21
  max_api_level = 34

CONNECT👍

Medium: https://medium.com/@ali.azaz.alam

Twitter: https://twitter.com/AliAzazAlam1

Github: https://github.com/aliazaz

LinkedIn: https://www.linkedin.com/in/aliazazalam/

LICENSE📃


Distributed under the MIT license. See LICENSE information.