-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
43 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ | |
[![CircleCI](https://circleci.com/gh/jenly1314/SplitEditText.svg?style=svg)](https://circleci.com/gh/jenly1314/SplitEditText) | ||
[![API](https://img.shields.io/badge/API-16%2B-blue.svg?style=flat)](https://android-arsenal.com/api?level=16) | ||
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php) | ||
[![Blog](https://img.shields.io/badge/blog-Jenly-9933CC.svg)](https://jenly1314.github.io/) | ||
[![QQGroup](https://img.shields.io/badge/QQGroup-20867961-blue.svg)](http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad) | ||
|
||
SplitEditText for Android 是一个灵活的分割编辑框。常常应用于 **验证码输入** 、**密码输入** 、等场景。 | ||
|
||
|
@@ -22,7 +20,31 @@ SplitEditText for Android 是一个灵活的分割编辑框。常常应用于 ** | |
## Gif 展示 | ||
![Image](GIF.gif) | ||
|
||
## SplitEditText 自定义属性说明 | ||
> 你也可以直接下载 [演示App](https://raw.githubusercontent.com/jenly1314/SplitEditText/master/app/release/app-release.apk) 体验效果 | ||
## 引入 | ||
|
||
### Gradle: | ||
|
||
1. 在Project的 **build.gradle** 或 **setting.gradle** 中添加远程仓库 | ||
|
||
```gradle | ||
repositories { | ||
//... | ||
mavenCentral() | ||
} | ||
``` | ||
2. 在Module的 **build.gradle** 里面添加引入依赖项 | ||
```gradle | ||
// AndroidX 版本 | ||
implementation 'com.github.jenly1314:splitedittext:1.1.0' | ||
``` | ||
## 使用 | ||
### SplitEditText 自定义属性说明 | ||
| 属性 | 值类型 | 默认值 | 说明 | | ||
| :------| :------ | :------ | :------ | | ||
| setStrokeWidth | dimension | 1dp | 画笔描边的宽度 | | ||
|
@@ -38,28 +60,7 @@ SplitEditText for Android 是一个灵活的分割编辑框。常常应用于 ** | |
| setCipherMask | string | * | 密文掩码(当 **TextStyle** 为密文时,可自定义密文掩码) | | ||
| setFakeBoldText | boolean | false | 是否是粗体 | | ||
|
||
## 引入 | ||
|
||
1. 在Project的 **build.gradle** 里面添加远程仓库 | ||
|
||
```gradle | ||
allprojects { | ||
repositories { | ||
//... | ||
mavenCentral() | ||
} | ||
} | ||
``` | ||
|
||
2. 在Module的 **build.gradle** 里面添加引入依赖项 | ||
```gradle | ||
// AndroidX 版本 | ||
implementation 'com.github.jenly1314:splitedittext:1.1.0' | ||
``` | ||
|
||
## 示例 | ||
### 示例 | ||
布局示例 | ||
```Xml | ||
|
@@ -106,14 +107,12 @@ Java | |
|
||
``` | ||
|
||
|
||
更多使用详情,请查看[app](app)中的源码使用示例 | ||
更多使用详情,请查看[app](app)中的源码使用示例或直接查看 [API帮助文档](https://jitpack.io/com/github/jenly1314/SplitEditText/latest/javadoc/) | ||
|
||
## 相关推荐 | ||
|
||
[CodeTextField](https://github.com/jenly1314/CodeTextField) 一个使用 Compose 实现的验证码输入框 | ||
|
||
[KingKeyboard](https://github.com/jenly1314/KingKeyboard) 自定义键盘,满足各种不同场景的键盘输入需求 | ||
#### [CodeTextField](https://github.com/jenly1314/CodeTextField) 一个使用 Compose 实现的验证码输入框 | ||
#### [KingKeyboard](https://github.com/jenly1314/KingKeyboard) 自定义键盘,满足各种不同场景的键盘输入需求 | ||
|
||
## 版本记录 | ||
|
||
|
@@ -124,28 +123,26 @@ Java | |
* SplitEditText初始版本 | ||
|
||
## 赞赏 | ||
如果您喜欢SplitEditText,或感觉SplitEditText帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley:<p> | ||
您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee: | ||
如果您喜欢SplitEditText,或感觉SplitEditText帮助到了您,可以点右上角“Star”支持一下,您的支持就是我的动力,谢谢 :smiley: | ||
<p>您也可以扫描下面的二维码,请作者喝杯咖啡 :coffee: | ||
|
||
<div> | ||
<img src="https://jenly1314.github.io/image/pay/sponsor.png" width="98%"> | ||
<img src="https://jenly1314.github.io/image/page/rewardcode.png"> | ||
</div> | ||
|
||
## 关于我 | ||
Name: <a title="关于作者" href="https://jenly1314.github.io" target="_blank">Jenly</a> | ||
|
||
Email: <a title="欢迎邮件与我交流" href="mailto:[email protected]" target="_blank">jenly1314#gmail.com</a> / <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314#vip.qq.com</a> | ||
| 我的博客 | GitHub | Gitee | CSDN | 博客园 | | ||
|:------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------| | ||
| <a title="我的博客" href="https://jenly1314.github.io" target="_blank">Jenly's Blog</a> | <a title="GitHub开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> | <a title="Gitee开源项目" href="https://gitee.com/jenly1314" target="_blank">jenly1314</a> | <a title="CSDN博客" href="http://blog.csdn.net/jenly121" target="_blank">jenly121</a> | <a title="博客园" href="https://www.cnblogs.com/jenly" target="_blank">jenly</a> | | ||
|
||
CSDN: <a title="CSDN博客" href="http://blog.csdn.net/jenly121" target="_blank">jenly121</a> | ||
## 联系我 | ||
|
||
CNBlogs: <a title="博客园" href="https://www.cnblogs.com/jenly" target="_blank">jenly</a> | ||
| 微信公众号 | Gmail邮箱 | QQ邮箱 | QQ群 | QQ群 | | ||
|:-------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------| | ||
| [Jenly666](http://weixin.qq.com/r/wzpWTuPEQL4-ract92-R) | <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314</a> | <a title="给我发邮件" href="mailto:[email protected]" target="_blank">jenly1314</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=6_RukjAhwjAdDHEk2G7nph-o8fBFFzZz" target="_blank">20867961</a> | <a title="点击加入QQ群" href="https://qm.qq.com/cgi-bin/qm/qr?k=Z9pobM8bzAW7tM_8xC31W8IcbIl0A-zT" target="_blank">64020761</a> | | ||
|
||
GitHub: <a title="GitHub开源项目" href="https://github.com/jenly1314" target="_blank">jenly1314</a> | ||
|
||
Gitee: <a title="Gitee开源项目" href="https://gitee.com/jenly1314" target="_blank">jenly1314</a> | ||
|
||
加入QQ群: <a title="点击加入QQ群" href="http://shang.qq.com/wpa/qunwpa?idkey=8fcc6a2f88552ea44b1411582c94fd124f7bb3ec227e2a400dbbfaad3dc2f5ad" target="_blank">20867961</a> | ||
<div> | ||
<img src="https://jenly1314.github.io/image/jenly666.png"> | ||
<img src="https://jenly1314.github.io/image/qqgourp.png"> | ||
</div> | ||
<div> | ||
<img src="https://jenly1314.github.io/image/page/footer.png"> | ||
</div> | ||
|