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

setImageAlpha() is not working #125

Open
dsemelianov opened this issue Apr 22, 2016 · 4 comments
Open

setImageAlpha() is not working #125

dsemelianov opened this issue Apr 22, 2016 · 4 comments

Comments

@dsemelianov
Copy link

I'm programatically applying alpha values to the image like this:
mProfilePicture.setImageAlpha(100);
But it doesn't seem to do anything.

I've tried using the same line of code on a regular ImageView and it works just fine, but when applied to the CircleImageView it doesn't work :(

Any suggestions/alternatives?

@dsemelianov
Copy link
Author

Not a fix but a workaround -- I ended up putting the CircleImageView inside of a RelativeLayout and changed the opacity by doing this:
mRelativeLayout.setAlpha(0.5f);

@hdodenhof
Copy link
Owner

Alpha is currently not supported - I might add it in the future though.

@mhousser
Copy link

I have used @dsemelianov's workaround for now by calling .setAlpha on a dummy container view.

Would be nice to have this, though.

@hdodenhof
Copy link
Owner

Alpha support has been merged in 7ad4632 and will be available with the next release.

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

3 participants