RupiahEditText

Additional

Language
Java
Version
0.0.4 (Feb 3, 2020)
Created
Jan 3, 2020
Updated
Jul 2, 2020
Owner
Adi Andrea (dekzitfz)
Contributor
Adi Andrea (dekzitfz)
1
Activity
Badge
Generate
Download
Source code

Commercial

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