I'm using Imageview to show images and I"m using background drawable shape xml to show the image in circular shape.
It works fine when I preload the image, but I have set Onclick listener where user can edit and change user profile picture but when user selects image then it show rectunglar imageview instead of circulr.
How can I fixed it..
Here is the xml code
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:id="@+id/itemImage1"
android:background="@drawable/shape"
android:layout_marginLeft="5dp"
android:layout_marginBottom="20dp"
android:src="@android:drawable/ic_menu_camera"
android:cropToPadding="true"
android:scaleType="fitXY" />
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid
android:color="@color/white">
</solid>
<corners
android:radius="7dp" >
</corners>
</shape>
Thanks in advance.