Trouble with custom seekBar android -
i have trouble custom seekbar .i used http://android-holo-colors.com/ give images of seekbar .the problem vague beginning of seekbar . how can solve problem?! screenshot:
this code (i check , images same default except colors.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@android:id/background" android:drawable="@drawable/scrubber_track_red" /> <item android:id="@android:id/secondaryprogress"> <scale android:scalewidth="100%" android:drawable="@drawable/scrubber_secondary_red" /> </item> <item android:id="@android:id/progress"> <scale android:scalewidth="100%" android:drawable="@drawable/scrubber_primary_red" /> </item> </layer-list>
and seekbar
<seekbar android:id="@+id/seektrack" android:layout_width="wrap_content" android:layout_height="wrap_content" android:progressdrawable="@drawable/scrubber_progress_red" android:thumb="@drawable/scrubber_control_red" android:indeterminate="false" android:layout_weight="1" style="?android:attr/progressbarstylehorizontal"/>
images got aforementioned service (android holo colors)
check drawables, there's gradient in there somewhere opposed solid color. i'd guess problem in @drawable/scrubber_progress_red
. replace temporarily @android:color/holo_green_light
. if gradient goes away, we'll know scrubber_progress_red
drawable problem.
also, name of file layer-list in?
Comments
Post a Comment