最近项目中需要用到裁剪视频操作的控件,本着不要重复造轮子的精神,在Github上找了个遍都没有发现有可用的。那就只好自己动手做了。目前已经开源到Github,欢迎Start,issue。
基本用法引入依赖repositories {
maven { url "https://jitpack.io"}
}
dependencies {
compile 'com.github.waynell:VideoRangeSlider:1.0.1'
}
在布局xml中加入控件
app:lineHeight="3dp"
app:lineColor="@color/colorAccent"
app:thumbWidth="@dimen/range_thumb_width"
app:tickCount="100"
app:leftThumbIndex="10"
app:leftThumbDrawable="@drawable/thumb_drawable"
app:rightThumbDrawable="@drawable/thumb_drawable"
android:id="@+id/rang