Simple way to convert 1000000 to Rp 1,000,000 .
Add maven jitpack.io and dependencies in build.gradle (Project) :
// build.gradle projectallprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
// build.gradle app/moduledependencies {
...
implementation 'com.github.gzeinnumer:TextViewCurrency:version'
}- CurrencyConverter Programatically.
NoteRP 123,456,789.111 To Remove PrefixRP and symbol , you can use this :
TextViewtextView = findViewById(R.id.textView);
TextViewtextView2 = findViewById(R.id.textView2);
textView.setText(CurrencyTextView.changePattern("Rp ","10000"));
//remove prefix and commatextView2.setText(CurrencyTextView.trimCommaOfString("Rp ",textView.getText().toString()));Preview :
![]() |
|---|
- 1.0.1
- First Release
- 2.0.0
- Support SDK 16
You can sent your constibution to branchopen-pull.
Copyright 2020 M. Fadli Zein
