Android Marshmallow - Custom seekbar progress bar not showing -


i'm trying customize seekbar this:

custom seek bar

on api level < 23, progress line visible if progress of seekbar equals 0. on api level = 23, have strange issue: progress line not showing in same conditions =/ want see line, because clarifying borders of usage 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!

well, don't know, why progress bar line not shows on android 6 devices, if drawables seek_bar_track simple .png images. when changed format .9.png (with sdk tool draw9patch) - works.

summary - transformed .png images seek_bar_track .9.png format, , helped me solve problem.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -