Android range view for cropping
RangeView
Android range view for cropping (video, audio, etc.)
Usage
<com.iammert.rangeview.library.RangeView
android:id="@+id/rangeView"
android:layout_width="match_parent"
android:layout_height="56dp"
app:strokeColor="#123123"
app:colorBackground="#555555" />
Listeners
rangeView.rangeValueChangeListener = object : RangeView.OnRangeValueListener {
override fun rangeChanged(maxValue: Float, minValue: Float, currentLeftValue: Float, currentRightValue: Float) {}
}
rangeView.rangePositionChangeListener = object : RangeView.OnRangePositionListener {
override fun leftTogglePositionChanged(xCoordinate: Float, value: Float) {}
override fun rightTogglePositionChanged(xCoordinate: Float, value: Float) {}
}
rangeView.rangeDraggingChangeListener = object :RangeView.OnRangeDraggingListener{
override fun onDraggingStateChanged(draggingState: DraggingState) {}
}
Download
maven { url 'https://jitpack.io' }
dependencies {
compile 'com.github.iammert:rangeview:0.1'
}