I used the VerticalSeekBar descripted on How can I get a working vertical SeekBar in Android?. It's a pretty good job and works well for me. But when I set progressDrawable in layout xml, it doesnot work. Any suggestions?
Here is the snippet in my layout xml:
<com.aidufei.widget.VerticalSeekBar
android:id="@+id/volume_bar"
android:layout_width="16dip"
android:layout_height="160dip"
android:background="@drawable/volume_bar_bg"
android:paddingBottom="20dip"
android:progressDrawable="@drawable/vol_seekbar_style"
android:thumb="@drawable/volume_thumb"
android:thumbOffset="-13dip" />
and vol_seekbar_style.xml:`
<item android:id="@android:id/background">
<shape>
<corners android:radius="5dip" />
<gradient
android:angle="360"
android:centerColor="#868781"
android:centerY="1"
android:endColor="#868781"
android:startColor="#868781" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:angle="90"
android:endColor="#3B3934"
android:startColor="#3B3934" />
<corners android:radius="5dip" />
</shape>
</clip>
</item>
` VerticalSeekBar.java:https://gist.github.com/maxhis/4739037