Skip to content

Commit fe2f65e

Browse files
committed
修复位移计算错误
1 parent bc48721 commit fe2f65e

File tree

5 files changed

+133
-131
lines changed

5 files changed

+133
-131
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
dependencies {
2727
//需要是Androidx
28-
implementation 'com.github.FlodCoding:DrawableTextView:1.0.3'
28+
implementation 'com.github.FlodCoding:DrawableTextView:1.0.4'
2929

3030
}
3131

@@ -35,7 +35,7 @@ drawableTextView.setEnableCenterDrawables(true)
3535
.setEnableTextInCenter(true)
3636
.setDrawableStart(DrawableStart) //单独设置Drawable,以内部大小为准
3737
.setDrawableStart(DrawableStart, width, height) //设置Drawable 并定义其尺寸,单位是DP
38-
.setDrawableTop()
38+
.setDrawableTop(DrawableTop)
3939
...
4040
4141
```
@@ -55,7 +55,7 @@ drawableTextView.setEnableCenterDrawables(true)
5555
android:textSize="20sp"
5656
app:drawableStartHeight="50dp"
5757
app:drawableStartWidth="50dp"
58-
app:enableCenterDrawables="ture"
59-
app:enableTextInCenter="ture" />
58+
app:enableCenterDrawables="true"
59+
app:enableTextInCenter="true" />
6060
```
6161

-21.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)