Skip to content

An auto-formatted edittext android to Indonesia Rupiah Currency.

License

Notifications You must be signed in to change notification settings

dekzitfz/RupiahEditText

Repository files navigation

RupiahEditText

Android ArsenalCI/CD

An auto-formatted edittext android to Indonesia Rupiah Currency.

Features

  • support until hundred-trillion Rupiah
  • no 0 (zero) in front of number

TODO

Add to your android project:

1. Update Project level build.gradle

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Or if you already using Kotlin DSL

pluginManagement {
    repositories {
        ...
        maven { url = uri("https://jitpack.io") }
    }
}

2. Update App level build.gradle (Choose your version)

Groovy Version
//build.gradle
implementation 'com.github.dekzitfz:RupiahEditText:0.1.1'
Version Catalogs Version
[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)
}

3. Add To Your Layout (XML)

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages