CurrencyEditText
具有自动货币格式的Android EditText。
发行:
当前版本:1.0.1。
您可以在此处查看所有库版本。
屏幕截图
在此处下载示例APK。
用法:
添加效率
allprojects {
repositories {
.. .
maven { url \' https://jit**pack.*io \' }
}
}
现在,将依赖项添加到您的应用程序build.gradle文件:
implementation \' com.github.marcoscgdev: CurrencyEditText :1.0.1 \'
使用小部件
CurrencyEditText
android:id=\”@+id/editText\”
android:layout_width=\”match_parent\”
android:layout_height=\”wrap_content\” />\”>
< com .marcoscg. CurrencyEditText . CurrencyEditText android : id = \" @+id/editText \" android : layout_width = \" match_parent \" android : layout_height = \" wrap_content \" />
检索价值
val value = CurrencyEditText .getNumericValue()
使用自定义区域
CurrencyEditText .setLocale( Locale . UK )
设置最大数字长度
CurrencyEditText .setMaxLength( 6 )
请参阅示例项目以澄清您可能有的任何查询。
执照
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.a*p**ache.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.
