Skip to content Skip to sidebar Skip to footer

Black Background In Circular Image View In Lollipop

I have used Circular Image View to implement profile image in circular shape with some colored border. The code works perfect on pre-lollipop devices. But, the same code on Lollipo

Solution 1:

Inside setup method, call:

paintBorder.setAlpha(254);

Solution 2:

you need try below code in lolipop.

userImage.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Post a Comment for "Black Background In Circular Image View In Lollipop"