Advertisement
HMuko

Untitled

Mar 18th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <SeekBar
  2. android:background="#0FFFF55"
  3. android:id="@+id/seekBarDistance"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:layout_marginTop="88dp"
  7. android:progress="0"
  8. android:progressDrawable="@drawable/progress"
  9. android:thumb="@drawable/thumb"
  10. android:splitTrack="false">
  11. </SeekBar>
  12.  
  13.  
  14.  
  15. and this would be the drawable progress.xml
  16.  
  17. <?xml version="1.0" encoding="utf-8"?>
  18. <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
  19. <item android:id="@android:id/background">
  20. <layer-list>
  21. <item>
  22. <bitmap
  23. xmlns:android="http://schemas.android.com/apk/res/android"
  24. android:src="@drawable/checkered_tile"
  25. android:tileMode="repeat"
  26. android:dither="true"
  27. android:filter="false"
  28. android:antialias="false"
  29. />
  30. </item>
  31. <item>
  32. <shape android:shape="rectangle" >
  33. <gradient android:startColor="#00000000"
  34. android:endColor="#FF000000" android:type="linear" android:angle="0dp"/>
  35. </shape>
  36. </item>
  37. </layer-list>
  38. </item>
  39.  
  40. </layer-list>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement