RupiahEditText
An auto-formatted edittext android to Indonesia Rupiah Currency.
Features
- support until hundred-trillion Rupiah
- no 0 (zero) in front of number
TODO
- support for adding IDR / Rp in front of number
- have request? write an issue
Add to your android project:
Project level build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
App level build.gradle
implementation 'com.github.dekzitfz:RupiahEditText:(insert latest version)'
Add To Your Layout
<id.adiandrea.rupiahedittext.RupiahEditText
android:id="@+id/rupiah"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
Get the value as Long
yourRupiahEditText.value //kotlin
yourRupiahEditText.getValue(); //java