Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/libq/ScrollTrackView
Browse files Browse the repository at this point in the history
  • Loading branch information
libq committed Apr 9, 2018
2 parents 32d9a3c + 2978c2f commit e3c3f45
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,36 @@
# ScrollTrackView
类似抖音效视频音频截取进度条

![demo](https://github.com/libq/ScrollTrackView/blob/master/demo.png)



##使用
# 项目build.gradle :
# 使用
## project 下的 build.gradle :
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
# module build.gradle :
## module 下的 build.gradle :
dependencies {
compile 'com.github.libq:ScrollTrackView:1.0.0'
}

## xml:
```
<com.libq.scrolltrackview.ScrollTrackView
android:id="@+id/stv"
android:layout_margin="10dp"
android:paddingLeft="10dp"
android:layout_width="match_parent"
android:layout_height="50dp"
app:foreground_color="@color/colorAccent"
app:background_color="@color/colorPrimary"
app:space_size="5dp"
app:track_item_width="1dp"
app:track_fragment_count="10"
/>
```


0 comments on commit e3c3f45

Please sign in to comment.