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

Using alpha/transparency in colors #28

Closed
sam-ghosh opened this issue Apr 24, 2015 · 2 comments
Closed

Using alpha/transparency in colors #28

sam-ghosh opened this issue Apr 24, 2015 · 2 comments
Assignees

Comments

@sam-ghosh
Copy link

My code sets the colour of an icon as follows:

    menu.findItem(R.id.action_notification).setIcon(new IconicsDrawable(this, FontAwesome.Icon.faw_android).
            color(R.color.iconactive).sizeDp(24));

Color is defined with a transparency component. However it still appears black on my app when I run it. Is this not supported then?

 <color name="iconactive">#36000000</color>
@mikepenz
Copy link
Owner

@somghosh it works but only on api level 21+. i have not found a solution for pre lollipop devices yet

@mikepenz mikepenz self-assigned this Apr 24, 2015
@sam-ghosh
Copy link
Author

Thanks

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