<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <SeekBar android:layout_width="300dp" android:layout_height="wrap_content" android:layout_centerInParent="true" android:max="100" android:maxHeight="@dimen/x6" android:minHeight="@dimen/x6" android:progress="50" android:progressDrawable="@drawable/xxx" android:thumb="@drawable/aaa" /></RelativeLayout>
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <!-- 背景 --> <item android:id="@android:id/background"> <shape> <size android:height="@dimen/x4" /> <gradient android:centerColor="#ffffff" android:endColor="#ffffff" android:startColor="#ffffff" /> </shape> </item> 第二进度条 <item android:id="@android:id/secondaryProgress"> <clip> <shape> <gradient android:centerColor="#8000bfff" android:endColor="#a000b2ee" android:startColor="#8000cdcd" /> </shape> </clip> </item> 第一进度条 <item android:id="@android:id/progress"> <clip> <shape> <solid android:color="#fec934" /> </shape> </clip> </item> </layer-list>
seekbar
最新推荐文章于 2024-06-18 13:29:41 发布