All Projects → Techie-Qabila → DroidValidatorLight

Techie-Qabila / DroidValidatorLight

Licence: other
Android form validation library

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to DroidValidatorLight

vue-sku-form
基于 Vue & ElementUI 的电商 SKU 表单配置组件
Stars: ✭ 94 (+193.75%)
Mutual labels:  form
react-jsonschema-formbuilder
No description or website provided.
Stars: ✭ 45 (+40.63%)
Mutual labels:  form
validator.js
(Depreciated) A Laravel styled JavaScript Object/Form/JSON validation library.
Stars: ✭ 47 (+46.88%)
Mutual labels:  form
react-formulation
Simple React form validation
Stars: ✭ 14 (-56.25%)
Mutual labels:  form
react-native-masked-input-text
A typescript masked input component for react-native
Stars: ✭ 14 (-56.25%)
Mutual labels:  form
react-hooks-form
React Forms the Hooks Way
Stars: ✭ 25 (-21.87%)
Mutual labels:  form
svelte-multistep-form
Svelte MultiStep Form like, this component is still in beta stage
Stars: ✭ 29 (-9.37%)
Mutual labels:  form
vue-example
Vue.js example application (server-side rendering, router, vuex store, form validation, i18n & l10n)
Stars: ✭ 62 (+93.75%)
Mutual labels:  form
Open-APIs
Collection of Unlimited APIs
Stars: ✭ 55 (+71.88%)
Mutual labels:  form
SuluFormBundle
Form Bundle for handling Dynamic and Symfony Forms in https://sulu.io
Stars: ✭ 51 (+59.38%)
Mutual labels:  form
p01contact
Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
Stars: ✭ 15 (-53.12%)
Mutual labels:  form
react-search
This package will help you create a pretty good and beautiful search. And other related features
Stars: ✭ 17 (-46.87%)
Mutual labels:  form
antd-react-form-builder
Example
Stars: ✭ 74 (+131.25%)
Mutual labels:  form
neat-form
Build form on Android using JSON schema; also includes view validation and skip logic.
Stars: ✭ 56 (+75%)
Mutual labels:  form
scalable-form-platform
A solution for building dynamic web forms with visual editor
Stars: ✭ 109 (+240.63%)
Mutual labels:  form
aurelia-form
Fun with forms! Form utilities to make stuff just a bit (a lot) easier.
Stars: ✭ 34 (+6.25%)
Mutual labels:  form
forms
A library to easily define and create forms, written in Kotlin
Stars: ✭ 39 (+21.88%)
Mutual labels:  form
WMZForm
一个功能强大的表单组件,可自定义(A powerful form component that can be customized)
Stars: ✭ 38 (+18.75%)
Mutual labels:  form
cypress-upload-file-post-form
Solution for two Cypress testing use-cases I came across with: perform a direct http FORM request to the server containing a file and other parameters and upload a file into a form before submission
Stars: ✭ 59 (+84.38%)
Mutual labels:  form
react-useForm
World's simplest React hook to manage form state
Stars: ✭ 30 (-6.25%)
Mutual labels:  form

DroidValidatorLight

This library is heavily inspired by AwesomeValidation but with no external dependencies. It makes it very light weight

Setup

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
	}

Step 2. Add the dependency

compile 'com.github.mahmed8003:DroidValidatorLight:${VERSION}'

Usage Examples

Form form = new Form(this);
form.enablePerFieldErrorMessageDisplay(); // If you want per field validation

// For simple scenarios
form.check(editText, RegexTemplate.NOT_EMPTY_PATTERN, "Must not be empty");
form.check(editText, RegexTemplate.EMAIL_PATTERN, "Must be an Email");
form.checkLength(editText, Range.equalOrLess(12), "Text length must be less or equal to 12");

form.checkValue(editText2, Range.equalOrMore(23), "Entered value must be greater equal than 23");

if(form.validate()) {
    Toast.makeText(this, "Success", Toast.LENGTH_LONG).show();
}

You can remove validate from form as well, You can make your own validators by extending Validator class.

Happy Validation, Thanks

License

Copyright (C) 2018 Muhammad Ahmed

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].