当前位置:操作系统 > 安卓/Android >>

定义SeekBar

 \

<SeekBar
        android:id="@+id/seekbar"
        android:layout_width="300dip"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_gravity="center"
        android:layout_marginTop="0dip"
        android:progressDrawable="@drawable/seekbar_img"
        android:thumb="@drawable/media_player_progress_button" />

 

media_player_progress_button.png

 \
seekbar_img.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/fast_seek_progress" />
<item android:id="@+android:id/progress" android:drawable="@drawable/media_player_progress_bg" />
</layer-list> 
fast_seek_progress.png

 

media_player_progress_bg.png
 

摘自  sun6223508的专栏 
补充:移动开发 , Android ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,