SeekBar是支持拖动的进度显示条.
基础样例1.普通样例效果图代码布局文件
SeekBarandroid:id="
+id/seekBar"android:layout_width="match_parent"android:layout_height="wrap_content"android:progress="50"/activity代码
//设置进度seekBar.progress=.分段可拖动进度条样例效果图代码
布局文件
SeekBarandroid:id="
+id/discreteSeekBar"style="style/Widget.AppCompat.SeekBar.Discrete"android:layout_width="match_parent"android:layout_height="wrap_content"android:max="10"android:progress="3"/基础样例完整源代码