Custom Seekbar
来源:互联网 发布:php 仿京东商城源代码 编辑:程序博客网 时间:2024/06/07 11:10
seekbar_define_style.xml
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<itemandroid:id="@android:id/background"
android:drawable="@drawable/ub_play_progress_bar_bland">
</item>
<item
android:id="@android:id/secondaryProgress" >
<clip android:drawable="@drawable/ub_play_progress_bar_ongoing" />
</item>
<item
android:id="@android:id/progress">
<clip android:drawable="@drawable/ub_play_progress_bar_ongoing" />
</item>
</layer-list>
main.xml
<SeekBar
android:id="@+id/mediacontroller_progress"
android:layout_width="970dip"
android:layout_height="wrap_content"
android:progress="0"
android:max="1000"
android:progressDrawable="@drawable/seekbar_define_style"
android:thumb="@null"/>
注意: 请将@drawable/ub_play_progress_bar_ongoing" 这些图片 与 seekbar_define_style.xml 放在 res/drawable 目录下,如果 放到其它目录如:drawable-hdpi 有可能会出现不同分辨率设备适配问题:如图出现就是适配问题情况。
- Custom Seekbar
- Custom SeekBar|XML
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- SeekBar
- seekbar
- SeekBar
- C
- 编程设计模式
- cout<<hex<<u.i<<endl 《程序员》的一道union题目
- webservice二进制文件传输
- 直接选择排序
- Custom Seekbar
- Android 解决ListView 和 ScrollView 共存冲突的问题
- 字符集和编码
- Reading Notes on《Code Complete 2nd》
- Android中3D gallary的实现
- android WebView总结
- Oracle创建dblink报错:ORA-01017、ORA-02063解决
- C/C++中的64位整数(__int64 and long long)
- Unity3d自带的自动寻路系统(一)