Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SeekBar
- android:background="#0FFFF55"
- android:id="@+id/seekBarDistance"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="88dp"
- android:progress="0"
- android:progressDrawable="@drawable/progress"
- android:thumb="@drawable/thumb"
- android:splitTrack="false">
- </SeekBar>
- and this would be the drawable progress.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">
- <layer-list>
- <item>
- <bitmap
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:src="@drawable/checkered_tile"
- android:tileMode="repeat"
- android:dither="true"
- android:filter="false"
- android:antialias="false"
- />
- </item>
- <item>
- <shape android:shape="rectangle" >
- <gradient android:startColor="#00000000"
- android:endColor="#FF000000" android:type="linear" android:angle="0dp"/>
- </shape>
- </item>
- </layer-list>
- </item>
- </layer-list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement