Android Arsenal – Textansichten
Android EditText mit automatischer Währungsformatierung.
Ausgaben:
Aktuelle Version: 1.0.1.
Sie können alle Ausgaben der Bibliothek sehen Hier.
Screenshots
Laden Sie eine Beispiel-APK herunter Hier.
Benutzen:
Abhängigkeiten hinzufügen
Fügen Sie dies zu Ihrem Stammverzeichnis hinzu build.gradle Datei:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Fügen Sie nun die Abhängigkeit zur Anwendungsdatei build.gradle hinzu:
implementation 'com.github.marcoscgdev:CurrencyEditText:1.0.1'
Verwendung von Widgets
<com.marcoscg.currencyedittext.CurrencyEditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
Wertübernahme
val value = currencyEditText.getNumericValue()
Verwenden einer benutzerdefinierten Website
currencyEditText.setLocale(Locale.UK)
Legen Sie die maximale Nummernlänge fest
currencyEditText.setMaxLength(6)
Siehst du Projektbeispiel um alle Fragen zu klären, die Sie haben.
Lizenz
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.