Action:alter
Description:修改readme
This commit is contained in:
3
.idea/modules.xml
generated
3
.idea/modules.xml
generated
@@ -2,11 +2,8 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectModuleManager">
|
<component name="ProjectModuleManager">
|
||||||
<modules>
|
<modules>
|
||||||
<module fileurl="file://$PROJECT_DIR$/VercodeEditText.iml" filepath="$PROJECT_DIR$/VercodeEditText.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/VercodeEditText.iml" filepath="$PROJECT_DIR$/VercodeEditText.iml" />
|
<module fileurl="file://$PROJECT_DIR$/VercodeEditText.iml" filepath="$PROJECT_DIR$/VercodeEditText.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
||||||
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" filepath="$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" filepath="$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" />
|
<module fileurl="file://$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" filepath="$PROJECT_DIR$/vcedittext-lib/vcedittext-lib.iml" />
|
||||||
</modules>
|
</modules>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
39
README-CN.md
39
README-CN.md
@@ -49,4 +49,41 @@ compile 'com.justkiddingbaby:vercodeedittext:最新版本'
|
|||||||
---|---|---
|
---|---|---
|
||||||
|[figures](/vcedittext-lib/src/main/res/values/attrs.xml)|验证码位数|integer|
|
|[figures](/vcedittext-lib/src/main/res/values/attrs.xml)|验证码位数|integer|
|
||||||
|[verCodeMargin](/vcedittext-lib/src/main/res/values/attrs.xml)|每个验证码的间隔|dimension|
|
|[verCodeMargin](/vcedittext-lib/src/main/res/values/attrs.xml)|每个验证码的间隔|dimension|
|
||||||
|[bottomLineSelectedColor](/vcedittext-lib/src/main/res/values/attrs.xml)|底线选择状态下的颜色|reference|
|
|[bottomLineSelectedColor](/vcedittext-lib/src/main/res/values/attrs.xml)|底线选择状态下的颜色|reference|
|
||||||
|
|[bottomLineNormalColor](/vcedittext-lib/src/main/res/values/attrs.xml)|底线未选中状态下的颜色|reference|
|
||||||
|
|[bottomLineHeight](/vcedittext-lib/src/main/res/values/attrs.xml)|底线高度|dimension|
|
||||||
|
|[selectedBackgroundColor](/vcedittext-lib/src/main/res/values/attrs.xml)|选中的背景颜色|reference|
|
||||||
|
|
||||||
|
## 方法说明
|
||||||
|
返回值|方法|说明
|
||||||
|
---|---|---
|
||||||
|
|void|[setFigures(int figures)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置验证码位数|
|
||||||
|
|void|[setVerCodeMargin(int margin)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置验证码之间的间隔|
|
||||||
|
|void|[setBottomSelectedColor(int bottomSelectedColor)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置底线选中状态的颜色|
|
||||||
|
|void|[setBottomNormalColor(int bottomNormalColor)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置底线未选中状态的颜色|
|
||||||
|
|void|[setSelectedBackgroundColor(int selectedBackground)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置验证码选中的背景颜色|
|
||||||
|
|void|[setBottomLineHeight(int bottomLineHeight)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置验证码底线的高度|
|
||||||
|
|void|[setOnVerificationCodeChangedListener([OnVerificationCodeChangedListener](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java) listener)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|设置验证码变化的监听器|
|
||||||
|
|
||||||
|
## 使用
|
||||||
|
#### 在布局中使用
|
||||||
|
```xml
|
||||||
|
<com.jkb.vcedittext.VerificationCodeEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="number"
|
||||||
|
android:text="123"
|
||||||
|
android:textColor="@color/colorPrimary"
|
||||||
|
android:textSize="40sp"
|
||||||
|
app:bottomLineHeight="2dp"
|
||||||
|
app:bottomLineNormalColor="@color/gravy_light"
|
||||||
|
app:bottomLineSelectedColor="@color/colorAccent"
|
||||||
|
app:figures="4"
|
||||||
|
app:selectedBackgroundColor="@color/colorPrimary_alpha33"
|
||||||
|
app:verCodeMargin="10dp" />
|
||||||
|
```
|
||||||
|
|
||||||
|
## 发布历史
|
||||||
|
#### v1.0.0(2017/6/12)
|
||||||
|
1、发布VercodeEditText控件,防止输入溢出.
|
||||||
|
2、封装demo.
|
||||||
43
README.md
43
README.md
@@ -48,6 +48,43 @@ compile 'com.justkiddingbaby:vercodeedittext:the latest version'
|
|||||||
## Attributes instruction
|
## Attributes instruction
|
||||||
attribute|instruction|value
|
attribute|instruction|value
|
||||||
---|---|---
|
---|---|---
|
||||||
|[slideMode](/slidemenu/src/main/res/values/attrs.xml)|sliding mode|left right both none|
|
|[figures](/vcedittext-lib/src/main/res/values/attrs.xml)|the verification code length|integer|
|
||||||
|[slidePadding](/slidemenu/src/main/res/values/attrs.xml)|the content view padding when slide menu is opened|dimension|
|
|[verCodeMargin](/vcedittext-lib/src/main/res/values/attrs.xml)|the padding for each verification code number|dimension|
|
||||||
|[slideTime](/slidemenu/src/main/res/values/attrs.xml)|the time of slide menu open,the default value is 800ms|integer|
|
|[bottomLineSelectedColor](/vcedittext-lib/src/main/res/values/attrs.xml)|the color of bottom line is select status|reference|
|
||||||
|
|[bottomLineNormalColor](/vcedittext-lib/src/main/res/values/attrs.xml)|the color of bottom line is normal status|reference|
|
||||||
|
|[bottomLineHeight](/vcedittext-lib/src/main/res/values/attrs.xml)|the height of bottom line|dimension|
|
||||||
|
|[selectedBackgroundColor](/vcedittext-lib/src/main/res/values/attrs.xml)|the background color of verification code is select status|reference|
|
||||||
|
|
||||||
|
## Function instruction
|
||||||
|
return|function name|instruction
|
||||||
|
---|---|---
|
||||||
|
|void|[setFigures(int figures)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the verification code length|
|
||||||
|
|void|[setVerCodeMargin(int margin)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the padding for each verification code number|
|
||||||
|
|void|[setBottomSelectedColor(int bottomSelectedColor)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the color of bottom line is select status|
|
||||||
|
|void|[setBottomNormalColor(int bottomNormalColor)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the color of bottom line is normal status|
|
||||||
|
|void|[setSelectedBackgroundColor(int selectedBackground)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the background color of verification code is select status|
|
||||||
|
|void|[setBottomLineHeight(int bottomLineHeight)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|set the height of bottom line|
|
||||||
|
|void|[setOnVerificationCodeChangedListener([OnVerificationCodeChangedListener](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java) listener)](/vcedittext-lib/src/main/java/com/jkb/vcedittext/VerificationAction.java)|add the listener when verification value is changing|
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
#### use in the layout
|
||||||
|
```xml
|
||||||
|
<com.jkb.vcedittext.VerificationCodeEditText
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:inputType="number"
|
||||||
|
android:text="123"
|
||||||
|
android:textColor="@color/colorPrimary"
|
||||||
|
android:textSize="40sp"
|
||||||
|
app:bottomLineHeight="2dp"
|
||||||
|
app:bottomLineNormalColor="@color/gravy_light"
|
||||||
|
app:bottomLineSelectedColor="@color/colorAccent"
|
||||||
|
app:figures="4"
|
||||||
|
app:selectedBackgroundColor="@color/colorPrimary_alpha33"
|
||||||
|
app:verCodeMargin="10dp" />
|
||||||
|
```
|
||||||
|
|
||||||
|
## Release history
|
||||||
|
#### v1.0.0(2017/6/12)
|
||||||
|
1、release VercodeEditText,Prevent input overflow.
|
||||||
|
2、Encapsulation demo.
|
||||||
Reference in New Issue
Block a user