CircleImageView icon indicating copy to clipboard operation
CircleImageView copied to clipboard

Default image error

Open eugenio-caicedo opened this issue 7 years ago • 0 comments

I put the CircleImageView in my layout with an src value, this is the image default. But this image is not shown correctly, a background black is displayed with the image. Like this:

screenshot_20170706-142448

This is my code:

<com.alexzh.circleimageview.CircleImageView android:id="@+id/img_picture" android:layout_height="@dimen/profile_picture_height" android:src="@drawable/profile_picture_white" app:view_backgroundColor="@android:color/transparent" app:view_shadowColor="@android:color/transparent" app:view_selectedColor="@android:color/transparent" app:view_pressedRingColor="@android:color/transparent" style="@style/ProfilePicture" />

And the style:

<style name="ProfilePicture"> <item name="android:layout_width">match_parent</item> <item name="android:layout_gravity">center_horizontal|top</item> <item name="android:maxWidth">@dimen/profile_picture_maxSize</item> <item name="android:maxHeight">@dimen/profile_picture_maxSize</item> <item name="android:layout_marginTop">@dimen/profile_picture_padding</item> <item name="android:layout_marginBottom">@dimen/profile_picture_padding</item> <item name="android:adjustViewBounds">true</item> </style>

When I use the setImageBitmap function, the default image does not change. But when the src property is not specified in the layout everything works perfectly. @AlexZhukovich please, can you help me with this?

Also, I would like to ask if this library has support for the adjustViewBounds property. Thanks.

eugenio-caicedo avatar Jul 06 '17 19:07 eugenio-caicedo