question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setBothDrawables=true renders black background on API 19

See original GitHub issue

Here 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zhanghaicommented, Sep 2, 2017

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.

0reactions
rdadkinscommented, Sep 6, 2017

Works as expected, thank you for updating!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found