android SeekBar使用
来源:互联网 发布:二炮有多厉害知乎 编辑:程序博客网 时间:2024/06/06 02:58
main.xml为:
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <SeekBar android:id="@+id/mPlayMusicVolume"android:layout_width="fill_parent" android:layout_height="wrap_content"android:layout_gravity="center" android:progressDrawable="@drawable/play_volume_style"android:thumb="@drawable/play_thumb_style" android:layout_centerVertical="true" android:thumbOffset="0dip" android:paddingTop="10dip"android:paddingLeft="-10dip" android:paddingRight="-5dip"android:minHeight="19dip" android:maxHeight="19dip"android:layout_marginLeft="25dip" android:layout_marginRight="25dip" /></LinearLayout>
play_thumb_sytle.xml为:
<?xml version="1.0" encoding="UTF-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/play_progress_scroll_selected" /> <!-- 普通无焦点状态 --> <item android:state_focused="false" android:state_pressed="false" android:drawable="@drawable/play_progress_scroll_normal" /> </selector>
play_volume_style.xml为:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@drawable/play_volume_total" /> <item android:id="@android:id/secondaryProgress" android:drawable="@drawable/play_volume_total"> </item> <item android:id="@android:id/progress" android:drawable="@drawable/play_volume_played"> </item> </layer-list>
其中play_volume_total为未播放时的进度条图片,play_volume_played为已经播放过去的进度条图片
- android SeekBar 使用注意
- android seekbar使用
- android SeekBar使用
- Android SeekBar的使用
- Android SeekBar使用
- Android SeekBar使用
- [Android] SeekBar 基本使用
- 【Android】SeekBar的使用
- Android中SeekBar的使用
- Android::SeekBar控件的使用
- android 自定义SeekBar的使用
- Android-SeekBar进度条的使用
- Android SeekBar使用 监听方法
- Android组件的使用:ProgressBar与SeekBar
- Android常用控件之SeekBar的使用
- Android常用控件之SeekBar的使用
- Android开发拖动条SeekBar的使用
- android ScrollView 与SeekBar结合使用
- jsp有哪些内置对象?作用分别是什么? 分别有什么方法?--好多公司笔试题(用不着也的学着背下)
- 新浪微博技术架构分析
- 计算机待机死机的原因及排除方
- 软件设计中的用户体验设计
- 为jQuery-easyui的tab组件添加右键菜单功能
- android SeekBar使用
- jsp乱码问题 (主要关于奇数乱码 偶数正常)
- 最精简的平滑的JS新闻单行上下滚动
- C# 调用PowerShell 脚本文件建立Exchange2010帐户及邮箱
- JQuery常用方法一览
- 用jQuery插件实现的滚屏效果,带上下翻页控制按钮
- 程序员的九重境界,你是第几重?
- 485总线常见故障处理
- 主题:用Python写个翻译工具