没有合适的资源?快使用搜索试试~ 我知道了~
首页android实现音乐播放器进度条效果
本文实例为大家分享了android实现音乐播放器进度条效果的具体代码,供大家参考,具体内容如下 效果图 依赖3个对象 MediaPlayer:实现音乐播放,暂停,缓冲。 SeekBar:滑动的进度条。 java.util.Timer:定时器,时时更新进度条。 main.xml样式文件 <TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=@string/hello> <EditText android:id=@+id/mediaFil
资源详情
资源评论
资源推荐

android实现音乐播放器进度条效果实现音乐播放器进度条效果
本文实例为大家分享了android实现音乐播放器进度条效果的具体代码,供大家参考,具体内容如下
效果图效果图
依赖依赖3个对象个对象
MediaPlayer:实现音乐播放,暂停,缓冲。
SeekBar:滑动的进度条。
java.util.Timer:定时器,时时更新进度条。
main.xml样式文件样式文件
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<EditText
android:id="@+id/mediaFileName"
android:layout_width="match_parent"
android:text="gangstabop.mp3"
android:layout_height="wrap_content" >
<requestFocus />
</EditText>
<LinearLayout
android:id="@+id/linearButton"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<Button
android:id="@+id/playButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stop" />
<SeekBar
android:id="@+id/playSeekBar"
android:layout_width="140px"
android:layout_height="wrap_content"
android:layout_marginLeft="3px"
android:layout_marginTop="5px" />
















安全验证
文档复制为VIP权益,开通VIP直接复制

评论0