I have a requirement of loading images but when i am loading images it should not be square/rectangular but in circle . So i want the images in circle and the border should be white in color . How do i load images in circle/oval . I tried creating background with shape = oval and gradient = 270 and set the background of image view to that shape . How else can i set the background for imageview .
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval" >
<gradient android:startColor="#FFFF0000" android:endColor="#80FF00FF"
android:angle="270"/>
</shape>