# FormatEditText **Repository Path**: jempson/FormatEditText ## Basic Information - **Project Name**: FormatEditText - **Description**: A edittext that can use the specified rule, 自定义规则格式化号码,可用来格式化电话号码、身份证号码、银行卡号码等。 - **Primary Language**: Android - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2018-03-14 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FormatEditText ## [English](https://github.com/dkzwm/FormatEditText/blob/master/README.md) | 中文
FormatEditText可以用来当做号码格式化文本输入框使用,可以用来作为格式化手机号码、格式化身份证号码、格式化银行卡号码等。 例如:指定样式为`344`,插入字符为`-`,手动依次输入`13012345678`,那么最终会格式化为`134-1234-5678`,且中间删除更改会自动补位。
支持2个属性 - 1.格式化样式,例如:`344`; - 2.需要中间插入的字符,例如:`-`; ## 演示程序 下载 [Demo.apk](https://raw.githubusercontent.com/dkzwm/FormatEditText/master/demo/demo.apk) ## Gradle ```groovy repositories { ... maven { url 'https://jitpack.io' } } dependencies { compile 'com.github.dkzwm:FormatEditText:0.0.4’ } ``` ## 快照
License
--------
Copyright (c) 2017 dkzwm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.