What I want to do:
such a SeekBar (volume loud left is not counted) 
In this SeekBar, I need to be able to set the progress bar size, thumb size (circle of blue) and their color.
Questions:
- How to properly customize SeekBar'y? (The progress bar should be a .9.png image or should it all be done with a drawable shape?)
If you do with the help of png pictures - everything goes fine.
The designer makes the picture: background, progress6 sceondary progress, thumb and everything is ok.
If you do everything with the help of shape, it turns out that the progress bar is always of one large size and I cannot change it. Code below:
layout.xml:
<SeekBar android:layout_width="306dp" android:layout_height="wrap_content" android:progressDrawable="@drawable/seek_bar_progress" android:thumb="@drawable/seek_bar_thumb"/> seek_bar_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"> <shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape> </item> <item android:id="@android:id/secondaryProgress"> <shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape> </item> <item android:id="@android:id/progress"> <shape android:shape="rectangle"> <solid android:color="#0000FF" /> </shape> </item> </layer-list> seek_bar_thumb.xml:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item > <shape android:shape="oval"> <solid android:color="#0000FF"/> <size android:height="31dp" android:width="31dp"/> </shape> </item> </layer-list> 