CircleImageView icon indicating copy to clipboard operation
CircleImageView copied to clipboard

setImageAlpha() is not working

Open dsemelianov opened this issue 8 years ago • 4 comments

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 avatar Apr 22 '16 06:04 dsemelianov

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);

dsemelianov avatar Apr 22 '16 07:04 dsemelianov

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

hdodenhof avatar May 16 '16 14:05 hdodenhof

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

Would be nice to have this, though.

mhousser avatar May 17 '16 22:05 mhousser

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

hdodenhof avatar Mar 11 '20 17:03 hdodenhof