Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
woxingxiao committed Dec 23, 2017
1 parent 50a0ff0 commit 7b402bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- 支持StateListDrawable(主要是checked_state)

# Screenshot
![demo4](https://github.com/woxingxiao/VectorCompatTextView/blob/master/screenshot/demo4.jpg)
![demo5](https://github.com/woxingxiao/VectorCompatTextView/blob/master/screenshot/demo5.jpg)
## Download
root project:`build.gradle`
```groovy
Expand All @@ -36,7 +36,7 @@ app:`build.gradle`
...
dependencies {
// e.g. compile 'com.github.woxingxiao:VectorCompatTextView:2.0'
// e.g. compile 'com.github.woxingxiao:VectorCompatTextView:2.3'
compile 'com.github.woxingxiao:VectorCompatTextView:${LATEST_VERSION}'
}
```
Expand Down Expand Up @@ -81,7 +81,7 @@ app:`build.gradle`
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="评论"
app:drawableAdjustTextHeight="true"
app:drawableAdjustTextHeight="true" <!-- text bounds -->
app:drawableLeftCompat="@drawable/shape_rect_solid_red"
app:drawableWidth="4dp"/>

Expand All @@ -92,7 +92,7 @@ app:`build.gradle`
android:gravity="center"
android:text="SELECTED TAB"
android:textColor="@drawable/selector_text_color_tab"
app:drawableAdjustTextWidth="true"
app:drawableAdjustViewWidth="true" <!-- view bounds -->
app:drawableBottomCompat="@drawable/selector_drawable_tab"
app:drawableHeight="2dp"/>
```
Expand Down
Binary file removed screenshot/demo4.jpg
Binary file not shown.
Binary file added screenshot/demo5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7b402bd

Please sign in to comment.