Skip to content

Commit 5d8bde2

Browse files
committed
增加setEnabled 是否可用实现
1 parent 975eb8b commit 5d8bde2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ allprojects {
1111
}
1212
1313
dependencies {
14-
implementation 'com.github.LuckyCodeer:TagLayout:1.0.8'
14+
implementation 'com.github.LuckyCodeer:TagLayout:1.0.9'
1515
}
1616
```
1717

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ android {
99
defaultConfig {
1010
minSdkVersion 16
1111
targetSdkVersion 30
12-
versionCode 108
13-
versionName "1.0.8"
12+
versionCode 109
13+
versionName "1.0.9"
1414

1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1616
consumerProguardFiles "consumer-rules.pro"

library/src/main/java/com/yhw/taglayout/TagLayout.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class TagLayout : ViewGroup {
110110
TAG, "onMeasure left:${rect.left} top:${rect.top} ," +
111111
"right:${rect.right} ,bottom:${rect.bottom} measuredWidth:${childView.measuredWidth}"
112112
)
113+
childView.isEnabled = isEnabled
113114
mViewRectMap[childView] = rect
114115

115116
//最后一行处理

0 commit comments

Comments
 (0)