android-validation-komensky alternatives and similar packages
Based on the "Utility" category.
Alternatively, view android-validation-komensky alternatives based on common mentions on social networks and blogs.
-
StatusBarUtil
A util for setting status bar style on Android App. -
timber
A logger with a small, extensible API which provides utility on top of Android's normal Log class. -
ExpirableDiskLruCache
Java implementation of a Disk-based LRU cache which specifically targets Android compatibility. -
Byte Buddy
Runtime code generation for the Java virtual machine. -
ASimpleCache
a simple cache for android and java -
wire
gRPC and protocol buffers for Android, Kotlin, Swift and Java. -
ReLinker
A robust native library loader for Android. -
tape
A lightning fast, transactional, file-based FIFO for Android and Java. -
OpenKeychain
OpenKeychain is an OpenPGP implementation for Android. -
tray
a SharedPreferences replacement for Android with multiprocess support -
joda-time-android
Joda-Time library with Android specialization -
AutobahnAndroid
WebSocket & WAMP in Java for Android and Java 8 -
easydeviceinfo
:iphone: [Android Library] Get device information in a super easy way. -
Android-Templates-And-Utilities
Collection of source codes, utilities, templates and snippets for Android development. -
secure-preferences
Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure. -
greenrobot-common
General purpose utilities and hash functions for Android and Java (aka java-common) -
Androl4b
A Virtual Machine For Assessing Android applications, Reverse Engineering and Malware Analysis -
vector-compat
A support library for VectorDrawable and AnimatedVectorDrawable classes introduced in Lollipop -
smoothie
Easy async loading for Android's ListView/GridView -
ColorArt
iTunes 11-style color matching code for Android -
CastCompanionLibrary-android
CastCompanionLibrary-android is a library project to enable developers integrate Cast capabilities into their applications faster and easier. -
android_dbinspector
Android library for viewing, editing and sharing in app databases. -
AndroidBillingLibrary
Android Market In-app Billing Library -
motion
An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt -
Colours
A beautiful set of predefined colors and a set of color methods to make your Android development life easier. -
EasyCamera
Wrapper around the android Camera class that simplifies its usage -
MrVector
[Deprecated] AKA VectorDrawableCompat: A 7+ backport of VectorDrawable -
Reservoir
Android library to easily serialize and cache your objects to disk using key/value pairs. -
Android-Validator
Form Validator Library for Android -
davdroid
DAVdroid – CalDAV/CardDAV synchronization for Android 4+ devices -
AndroidFaceCropper
Android bitmap Face Cropper -
dspec
A simple way to define and render UI specs on top of your Android UI. -
routable-android
Routable, an in-app native URL router, for Android -
Treasure
Very easy to use wrapper library for Android SharePreferences -
DebugLog
Create a simple and more understandable Android logs. -
RoboGif
A small utility to record Android device screen to a GIF -
GhostLog
Android app that displays the logcat buffer in a system overlay window
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of android-validation-komensky or a related project?
README
ValidationKomensky for Android
A simple library for validating user input in forms using annotations.
Features:
- Validate all views at once and show feedback to user. With one line of code.
- Live validation - check user input as he moves between views with immediate feedback.
- Extensible library - you can add your own validations or adapters for custom views.
How to include it in your project:
With Gradle:
compile 'eu.inmite.android.lib:android-validation-komensky:0.9.4@aar'
Manually:
- clone the project
- add it as library project in your IDE
How to validate
First, annotate your views like this:
@NotEmpty(messageId = R.string.validation_name)
@MinLength(value = 3, messageId = R.string.validation_name_length, order = 2)
private EditText mNameEditText;
Now you are ready to:
FormValidator.validate(this, new SimpleErrorPopupCallback(this));
You will receive collection of all failed validations in a callback and you can present them to the user as you want.
Or simply use prepared callbacks (like SimpleErrorPopupCallback
).
Live validation
To start and stop live validation, simply call:
FormValidator.startLiveValidation(this, new SimpleErrorPopupCallback(this));
FormValidator.stopLiveValidation(this);
List of all supported validation annotations
Validations supported out of the box:
- [NotEmpty](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/NotEmpty.java)
@NotEmpty(messageId = R.string.validation_name, order = 1)
private EditText mNameEditText;
- [MaxLength](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MaxLength.java)
- [MinLength](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MinLength.java)
@MinLength(value = 1, messageId = R.string.validation_participants, order = 2)
private EditText mNameEditText;
- [MaxValue](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MaxValue.java)
- [MinValue](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MinValue.java)
@MinValue(value = 2L, messageId = R.string.validation_name_length)
private EditText mEditNumberOfParticipants;
- [MaxNumberValue](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MaxNumber.java)
- [MinNumberValue](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/MinNumberValue.java)
@MinNumberValue(value = "5.5", messageId = R.string.validation_name_length)
private EditText mEditPotentialOfHydrogen;
- [RegExp](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/RegExp.java)
@RegExp(value = EMAIL, messageId = R.string.validation_valid_email)
private EditText mEditEmail;
@RegExp(value = "^[0-9]+$", messageId = R.string.validation_valid_count)
private EditText mEditCount;
- [DateInFuture](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/DateInFuture.java)
@DateInFuture(messageId = R.string.validation_date)
private TextView mTxtDate;
- [DateNoWeekend](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/DateNoWeekend.java)
@DateNoWeekend(messageId = R.string.validation_date_weekend)
private TextView mTxtDate;
- [Custom](../master/library/src/main/java/eu/inmite/android/lib/validations/form/annotations/Custom.java)
@Custom(value = MyVeryOwnValidator.class, messageId = R.string.validation_custom)
private EditText mNameEditText;
Proguard
Should you need to use the proguard, copy these rules:
-keepattributes *Annotation*
-keep class eu.inmite.android.lib.validations.form.annotations.** { *; }
-keep class * implements eu.inmite.android.lib.validations.form.iface.ICondition
-keep class * implements eu.inmite.android.lib.validations.form.iface.IValidator
-keep class * implements eu.inmite.android.lib.validations.form.iface.IFieldAdapter
-keepclassmembers class ** {
@eu.inmite.android.lib.validations.form.annotations.** *;
}
Why 'Komensky'?
Jan Ámos Komenský was a famous Czech educator, father of modern education methods. Teachers tend to correct you, just like this library. You won't miss any errors in the user input.
See our other Czech personalities who help with #AndroidDev.