An auto-formatted edittext android to Indonesia Rupiah Currency.
- support until hundred-trillion Rupiah
- no 0 (zero) in front of number
- have request? write an issue
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Or if you already using Kotlin DSL
pluginManagement {
repositories {
...
maven { url = uri("https://jitpack.io") }
}
}
//build.gradle
implementation 'com.github.dekzitfz:RupiahEditText:0.1.1'
[versions]
rupiahedittext = "0.1.1"
[libraries]
rupiah-edittext = { group = "com.github.dekzitfz", name = "RupiahEditText", version.ref = "rupiahedittext" }
//build.gradle.kts (App Level)
dependencies {
...
implementation(libs.rupiah.edittext)
}
<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