I'm trying to customize my seekbar like this:
On API level < 23, progress line is visible even if progress of seekbar equals to 0. But on API level = 23, I have strange issue: progress line not showing in the same conditions =/ I want to see this line, because it is clarifying borders of usage my seekbar.
My seek_bar_progress_bar.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" android:drawable="@drawable/seek_bar_track" />
<item android:id="@android:id/secondaryProgress">
<scale
android:drawable="@drawable/seek_bar_track"
android:scaleWidth="100%" />
</item>
<item android:id="@android:id/progress">
<scale
android:drawable="@drawable/seek_bar_track"
android:scaleWidth="100%" />
</item>
</layer-list>
My style.xml
:
<style name="seek_bar_style" parent="android:Widget.Holo.Light.SeekBar">
<item name="android:progressDrawable">@drawable/seek_bar_progress_bar</item>
<item name="android:indeterminateDrawable">@drawable/seek_bar_progress_bar</item>
<item name="android:thumb">@drawable/seek_bar_thumb_selector</item>
</style>
Thanks in advance!