Search bar malfunction in Android 5.0 API 21 Lollipop browser

API level <21

Thumb is transparent as expected.

Screenshot taken on a Nexus 5 running Android 4.4.4

In API Level 21

Thumb is opaque, I wonder why.

Screenshot taken on a Nexus 5 running Android 5.0

Here is the code

<SeekBar android:id="@+id/ui_audioplayer_progressbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:progressDrawable="@drawable/custom_progress_bar_horizontal" android:thumb="@drawable/stud_slider" /> 

Interestingly, this problem can be seen and reproduced in the xml preview in the eclipse itself when you change the perspectives of the API level.

When API level 21 is selected

When API level 19 is selected

Note:

  • I run the same apk on both devices.
  • Both devices have the same make and model, i.e. Nexus 5.
  • The thumb image is PNG with a transparent background, as can be seen from the screenshot for API level <21

Is this a known bug in Lollipop or am I doing something wrong?

+43
android android-5.0-lollipop transparency
Dec 11 '14 at 5:25
source share
2 answers
 <SeekBar .... android:splitTrack="false" /> 
+104
Dec 18 '14 at 6:25
source share

For all API levels

 <Seekbar ..... android:background="@null" android:splitTrack="false" .... /> 

will work. It worked for me.

+6
May 03 '16 at 9:29 a.m.
source share



All Articles