This is custom can set start circle seekbar.
- Number
- Clock(defualt)
isScale(ture)
isNumberScale(ture)
isSetStart(false)
setCircleColor(int color)
setPointerColor(int color)
setInvaildColor(int color)
setSelectColor(int color)
setCenterTextColor(int color)
setCenterTextSize(int size)
setCircleWidth(int width)
setRangeWidth(int width)
setScaleTextSize(int size)
setScaleUnit()
setStyle(Style)
installItems(List<Itme> items)
remove(int position)
clear()
setArcs(List<Arc> arcs)
You can add gradle dependency with command :
compile 'com.tomduan.conciseclock:library:0.2.2'
- add this in your xml:
<com.tomduan.library.CircleSeekBar
android:id="@+id/circle_seek_bar"
android:layout_width="match_parent"
android:layout_height="200000dp"
android:layout_below="@+id/guide"
android:padding="8dp"/>
- add this in your code:
mSeekBar.setCircleColor(Color.BLUE);
mSeekBar.setPointerColor(Color.YELLOW);
mSeekBar.setInvaildColor(Color.GREEN);
mSeekBar.setSelectColor(Color.RED);
mSeekBar.setTextColor(Color.BLACK);
mSeekBar.setTextSize(50);
mSeekBar.setCircleWidth(32);
mSeekBar.setRangeWidth(18);
mSeekBar.setStyle(CircleSeekBar.CLOCK);
mSeekBar.build();