API level <21
Thumb is transparent as expected.

In API Level 21
Thumb is opaque, I wonder why.

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.


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?
android android-5.0-lollipop transparency
Vinay Wadhwa Dec 11 '14 at 5:25 2014-12-11 05:25
source share