SkillAgentSearch skills...

CurrencyEditText

An Android EditText with automatic currency formatting.

Install / Use

/learn @marcoscgdev/CurrencyEditText
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

CurrencyEditText

An Android EditText with automatic currency formatting.


Releases:

Current release: 1.0.1.

You can see all the library releases here.


Screenshots

<kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663066.png" width="250"></kbd>    <kbd><img src="https://raw.githubusercontent.com/marcoscgdev/CurrencyEditText/master/Screenshot_1617663115.png" width="250"></kbd>

Download the sample apk here.


Usage:

Adding the depencency

Add this to your root build.gradle file:

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

Now add the dependency to your app build.gradle file:

implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.1'

Using the widget

<com.marcoscg.currencyedittext.CurrencyEditText
    android:id="@+id/editText"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

Retrieving the value

val value = currencyEditText.getNumericValue()

Using a custom locale

currencyEditText.setLocale(Locale.UK)

Setting max number length

currencyEditText.setMaxLength(6)

See the sample project to clarify any queries you may have.


License

Copyright 2021 Marcos Calvo García

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated1y ago
Forks3

Languages

Kotlin

Security Score

80/100

Audited on Oct 21, 2024

No findings