Skip to content

Commit 55a3f18

Browse files
committed
update
1 parent 5778f3e commit 55a3f18

12 files changed

Lines changed: 107 additions & 34 deletions

File tree

.idea/markdown-navigator.xml

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/markdown-navigator/profiles_settings.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ClassicLinesEditView
22
多行文本输入框 带计数 限制文字数量
33

4-
![image](https://raw.githubusercontent.com/louisgeek/ClassicLinesEditView/master/screenshots/pic0.png)
4+
![image](https://raw.githubusercontent.com/louisgeek/ClassicLinesEditView/master/screenshots/pic.png)
55

66

77
![image](https://raw.githubusercontent.com/louisgeek/ClassicLinesEditView/master/screenshots/pic2.png)
@@ -32,18 +32,25 @@ Step 2. Add the dependency [![](https://jitpack.io/v/louisgeek/ClassicLinesEdit
3232

3333
attr
3434

35+
```xml
3536

3637
<!--
3738
默认 app:maxCount="240"
3839
默认 app:IgnoreCnOrEn="true"
3940
-->
40-
41-
41+
<com.classichu.lineseditview.LinesEditView
42+
android:layout_margin="10dp"
43+
android:layout_width="match_parent"
44+
android:layout_height="wrap_content"
45+
/>
46+
```
4247

4348
code
4449

50+
```java
4551
mClassicLinesEditView.setHintText("hintText");
4652
mClassicLinesEditView.setContentText("ContentText");
4753

4854
Log.i(TAG, "onCreate: getHintText"+mClassicLinesEditView.getHintText());
4955
Log.i(TAG, "onCreate: getContentText"+mClassicLinesEditView.getContentText());
56+
```

app/build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
apply plugin: 'com.android.application'
22
android {
3-
compileSdkVersion 25
4-
buildToolsVersion "25.0.3"
3+
compileSdkVersion 26
54
defaultConfig {
65
applicationId "com.classichu.classiclineseditview"
76
minSdkVersion 15
8-
targetSdkVersion 25
7+
targetSdkVersion 22
98
versionCode 1
109
versionName "1.0"
1110
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -19,12 +18,11 @@ android {
1918
}
2019

2120
dependencies {
22-
compile fileTree(include: ['*.jar'], dir: 'libs')
23-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
24-
exclude group: 'com.android.support', module: 'support-annotations'
25-
})
26-
compile 'com.android.support:appcompat-v7:25.3.1'
27-
compile 'com.android.support.constraint:constraint-layout:1.0.2'
28-
testCompile 'junit:junit:4.12'
29-
compile project(':library')
21+
implementation fileTree(dir: 'libs', include: ['*.jar'])
22+
implementation 'com.android.support:appcompat-v7:26.1.0'
23+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
24+
testImplementation 'junit:junit:4.12'
25+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
26+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
27+
implementation project(':library')
3028
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
android:layout_margin="10dp"
2121
android:layout_width="match_parent"
2222
android:layout_height="wrap_content"
23-
2423
/>
2524

2625
</LinearLayout>

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@
22

33
buildscript {
44
repositories {
5+
google()
56
jcenter()
67
}
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.3'
9-
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' // Add this line
9+
classpath 'com.android.tools.build:gradle:3.0.1'
10+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0' // Add this line
1011
// NOTE: Do not place your application dependencies here; they belong
1112
// in the individual module build.gradle files
1213
}
1314
}
1415

1516
allprojects {
1617
repositories {
18+
google()
1719
jcenter()
1820
}
1921
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

library/build.gradle

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33
group='com.github.louisgeek'
44
android {
5-
compileSdkVersion 25
6-
buildToolsVersion "25.0.3"
7-
5+
compileSdkVersion 26
86
defaultConfig {
97
minSdkVersion 15
10-
targetSdkVersion 25
8+
targetSdkVersion 22
119
versionCode 1
1210
versionName "1.0"
1311

@@ -23,10 +21,10 @@ android {
2321
}
2422

2523
dependencies {
26-
compile fileTree(dir: 'libs', include: ['*.jar'])
27-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
28-
exclude group: 'com.android.support', module: 'support-annotations'
29-
})
30-
compile 'com.android.support:appcompat-v7:25.3.1'
31-
testCompile 'junit:junit:4.12'
24+
implementation fileTree(dir: 'libs', include: ['*.jar'])
25+
implementation 'com.android.support:appcompat-v7:26.1.0'
26+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
27+
testImplementation 'junit:junit:4.12'
28+
androidTestImplementation 'com.android.support.test:runner:1.0.1'
29+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
3230
}

0 commit comments

Comments
 (0)