material-about-library icon indicating copy to clipboard operation
material-about-library copied to clipboard

Icons show up as black boxes in 3.1.2 but not 2.4.2 MaterialAboutActionItem Builder

Open chaneylc opened this issue 4 years ago • 1 comments

When using .pngs as icons for the MaterialAboutActionItem Builder, they show as black boxes in version 3.1.2

cardBuilder.addItem(MaterialAboutActionItem.Builder()
                .text("Test")
                .icon(R.drawable.test)
                .build())

Although this works perfectly in 2.4.2 with the same code, the icons are rendered properly.

The style is a child of "Theme.MaterialComponents.Light.DarkActionBar".

Thanks for this great library, just a little confusing why the newest version doesn't show .png, which is the preferred Android format for drawables. https://developer.android.com/guide/topics/graphics/drawables

chaneylc avatar Jul 10 '20 19:07 chaneylc

Hi! Thanks for the issue, unfortunately I'm not able to reproduce the issue you're facing myself. Are you able to provide some sample code?

Cheers

daniel-stoneuk avatar Jul 13 '20 09:07 daniel-stoneuk