File tree Expand file tree Collapse file tree
library/src/main/java/com/lwjfork/code Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717属性名 | 属性说明
1818:---:|:---:
19- blockNormalColor | 正常状态下的颜色
20- blockFocusColor | 待输入且EditText获取了焦点时颜色
21- blockErrorColor | 错误状态下颜色
22- blockLineWidth | 绘制边框或者下划线的线的宽度
23- blockSpace | 块与块之间的间距
24- blockShape | 块的样式暂时支持四种 none solid stroke underline
19+ blockNormalColor | 正常状态下的颜色 默认为字体颜色
20+ blockFocusColor | 待输入且EditText获取了焦点时颜色 默认值为blockNormalColor
21+ blockErrorColor | 错误状态下颜色 默认值为blockNormalColor
22+ blockLineWidth | 绘制边框或者下划线的线的宽度 默认1dp
23+ blockSpace | 块与块之间的间距 默认0
24+ blockShape | 块的样式暂时支持四种 none solid stroke underline 默认值为none
2525
2626
2727blockShape 属性值 | 属性说明
2828:---:|:---:
29- none | 什么都不绘制
29+ none | 什么都不绘制,空白
3030solid | 填充色块
3131stroke | 绘制边框
3232underline | 下划线
@@ -37,10 +37,16 @@ underline | 下划线
3737属性名 | 属性说明
3838:---:|:---:
3939codeTextColor | 文本或者密码圆点颜色
40- codeTextSize | 文本尺寸,当 codeInputType 为 text 时生效
41- maxCodeLength | 输入的最大长度
42- dotRadius | 密码圆点半径,当codeInputType为 password 生效
43- codeInputType | password (密码圆点展示)text 明文展示
40+ codeTextSize | 文本尺寸,当 codeInputType 为 text 时生效。 默认为12sp
41+ maxCodeLength | 输入的最大长度 默认为6
42+ dotRadius | 密码圆点半径,当codeInputType为 password 生效。默认为5dp
43+ codeInputType | password (密码圆点展示)text 明文展示。 默认text
44+
45+ codeInputType 属性值 | 属性说明
46+ :---:|:---:
47+ none | 什么都不绘制,空白
48+ text | 明文
49+ password | 密码圆点展示
4450
4551## 效果图
4652
You can’t perform that action at this time.
0 commit comments