本文共 458 字,大约阅读时间需要 1 分钟。
先看结果:
1.拖一个SeekBar控件, ProgressDrawable默认值@android:drawable/scrubber_progress_horizontal_holo_light
2.在anroid SDK里搜索scrubber_progress_horizontal_holo_light.xml,打开源码为
3.直接使用会提示其中的 android:drawable="@android:drawable/scrubber_track_holo_light"不是public,可以
用android:drawable="@android:color/black"替换就行。
以下是我改的:
android:progressDrawable="@drawable/progressbar_blue"
progressbar_blue.xml
转载地址:http://jcaab.baihongyu.com/