Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chaneylc opened this issue Jul 10, 2020 · 1 comment

Comments

@chaneylc
Copy link

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

@daniel-stoneuk
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants