Android进阶之UI深度定制系列(一)
SeekBar也玩分段
常见的SeekBar和进度条一样从0-100%之间均可以滑动,但是有时候我希望能把进度粗略的分成几段,就像RatingBar那样;下面是大致效果图:
<SeekBar android:id="@+id/seekBar1" android:layout_width="match_parent" android:layout_height="wrap_content" android:progress
Android进阶之UI深度定制系列(一)
SeekBar也玩分段
常见的SeekBar和进度条一样从0-100%之间均可以滑动,但是有时候我希望能把进度粗略的分成几段,就像RatingBar那样;下面是大致效果图:
<SeekBar android:id="@+id/seekBar1" android:layout_width="match_parent" android:layout_height="wrap_content" android:progress