Skip to content

An auto-formatted edittext android to Indonesia Rupiah Currency.

License

Notifications You must be signed in to change notification settings

Biangkerok32/RupiahEditText

 
 

Repository files navigation

RupiahEditText

Android Arsenal

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 you 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

About

An auto-formatted edittext android to Indonesia Rupiah Currency.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 84.5%
  • Kotlin 15.5%