setBothDrawables=true renders black background on API 19
See original GitHub issueHere is my current configuration:
<me.zhanghai.android.materialprogressbar.MaterialProgressBar
style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal.NoPadding"
android:id="@+id/cardProgressBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:progress="10"
android:secondaryProgress="20"
android:max="100"
app:mpb_progressStyle="horizontal"
app:mpb_useIntrinsicPadding="false"
app:mpb_setBothDrawables="true"
app:mpb_showProgressBackground="true"/>
On API 19, it renders as follows:
And on API 24, it renders as expected:
When just using either indeterminate or determinate mode, everything renders as expected. Only when mpb_setBothDrawables
is true
, it renders black on 19.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Having render: {} in phaser's config adds black background to ...
Phaser clears/fill background with solid black (affects both CANVAS and WEBGL rendering modes), when render: {} (empty or filled) render ...
Read more >Black background after rendering - Blender Stack Exchange
I have a problem with background transparency. In the viewport the background is transparent but after rendering it is black.
Read more >Shimmer layout api 19 - android - Stack Overflow
Turns out that setting the ShimmerLayout's background to any color(in my case white) caused it to go black on api 19.
Read more >After Effects Graphic has black background instead...
When I tried to import an animation I made in After Effects into Premiere Pro, it has a black background instead of transparent....
Read more >Map background image renders black in Chrome on mobile
On the desktop, it renders fine in all browsers, but on mobile on the Chrome browser, the image layers of the maps render...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found out it’s a bug of
ColorFilter
with alpha in color which is resulting in the black, and it can be workarounded by turning on software layer rendering. Released in v1.4.2.Works as expected, thank you for updating!