Skip to content

Commit 34495de

Browse files
committed
更改版本号
1 parent 1d98b2e commit 34495de

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android {
3030
dependencies {
3131
compile fileTree(include: ['*.jar'], dir: 'libs')
3232
implementation "com.android.support:appcompat-v7:$SLVersion"
33-
compile 'com.github.lwjfork:CodeEditText:1.0.3'
34-
// implementation 'com.github.lwjfork:CodeEditText:1.0.3'
33+
// compile 'com.github.lwjfork:CodeEditText:1.0.3'
34+
implementation 'com.github.lwjfork:CodeEditText:1.0.4'
3535
// implementation project(':CodeEditText')
3636
}

app/src/main/res/layout/activity_custom_style.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
app:codeTextColor="@android:color/black"
3636
app:codeTextSize="30sp"
3737
app:cursorWidth="4dp"
38-
app:maxCodeLength="6"
38+
app:maxCodeLength="12"
3939
app:showCursor="true"
4040
tools:text="111" />
4141

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ rootProject.ext.DEVELOPER_EMAIL = "lwjfork@gmail.com"
4747
// 用户名
4848
rootProject.ext.BINTRAY_USER = "lwjfork"
4949
// 这里改成库版本 , 比如22.2.0
50-
rootProject.ext.PROJ_VERSION = "1.0.3"
50+
rootProject.ext.PROJ_VERSION = "1.0.4"
5151
// 这里改成库名字 , 比如appcompat
5252
rootProject.ext.PROJ_NAME = "CodeEditText"
5353
// 这里改成github地址 , 比如https:github.com/android/appcompat

library/src/main/java/com/lwjfork/code/CodeEditText.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ private void initRect(int measureWidth, int measureHeight) {
224224
int startY = 0;
225225
int endX = 0;
226226
int endY = 0;
227-
int blockWidth = (measureWidth - blockSpace * (maxCodeLength - 1)) / 6;
227+
int blockWidth = (measureWidth - blockSpace * (maxCodeLength - 1)) / maxCodeLength;
228228
int blockHeight = measureHeight;
229229
for (int i = 0; i < maxCodeLength; i++) {
230230
endX = startX + blockWidth;

0 commit comments

Comments
 (0)