Easy NumberFrom , never let it empty.
Add maven jitpack.io and dependencies in build.gradle (Project) :
// build.gradle project
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
// build.gradle app/module
dependencies {
...
implementation 'com.github.gzeinnumer:NumberForm:version'
}- EditText Example
<com.gzeinnumer.nf.NumberForm
android:id="@+id/ed_data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="put number" />- TextInputLayout and TextInputEditText Example
<com.google.android.material.textfield.TextInputLayout
android:layout_width="match_parent"
android:layout_marginTop="16dp"
android:layout_height="wrap_content">
<com.gzeinnumer.nf.NumberForm
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</com.google.android.material.textfield.TextInputLayout>You can user all of attribute in EditText inside NumberForm.
MainActivity.java activity_main.xml
- 1.0.0
- First Release
You can sent your constribution to branch open-pull.
Fore More All My Library
Copyright 2022 M. Fadli Zein


