My seekBar style is android Widget.AppCompat.SeekBar.Discrete. I have my own tickMarker but as you can see it shown in front of thumb marker, but I don want to see ticks behind of thumb.
and what I have :
my XML:
<android.support.v7.widget.AppCompatSeekBar
style="@style/seekbarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="4"
android:padding="4dp"
android:progress="0"/>
my style:
<style name="seekbarStyle" parent="Widget.AppCompat.SeekBar.Discrete">
<item name="tickMark">@drawable/seekbar_tickmark</item>
<item name="android:thumb">@drawable/circle</item>
</style>
This is a bug of AppCompatSeekBar. I resolved this problem with a custom Class that extends AppCompatSeekBar:
with the attrs.xml:
and in layout you must use tickMarkFixed instead of tickMark.