CET will be a library that contains multiple useful EditTexts. I'm building them as generic as possible so that it can be used by anyone, in any project.
First, you must add the jitpack.io repository in your top-level build.gradle file:
repositories {
maven { url 'https://jitpack.io' }
}Then, in your module-level build.gradle file:
dependencies {
implementation 'com.github.ZackOPP:CET:1.1.0'
}This is the first version I'm releasing about CET and so far, it contains only a CurrencyEditText.
It applies a 'Numeric Mask' which means it will properly render the grouping/decimal separators according to the current Locale of the device.
This is an extension of NumericEditText. It applies the same mask and in addition it shows the currency symbol according to the current Locale of the device. However, you may replace the currency symbol by whatever string value you need.
You will find a sample here.
So far, it shows the different ways that you can use the CurrencyEditText within your views and how to update the currency symbol.
I want to add the following EditText in the next versions (the names might change):
- PinCodeEditText: This will be a view that contains N EditTexts in which the user will be able to type only 1 value in each of them. The focus will be moved to the next EditText once the user types a value in one of them.
Copyright 2020 Zacarias Perez
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.