Skip to content

Repository files navigation

TextViewCurrency


Simple way to convert 1000000 to Rp 1,000,000 .


Content List


Download

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'
}

Feature List

  • CurrencyConverter Programatically.

Usage

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 :


Version

  • 1.0.1
    • First Release
  • 2.0.0
    • Support SDK 16

Contribution

You can sent your constibution to branchopen-pull.


Copyright 2020 M. Fadli Zein

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages