I have an ImageView in my layout which is circular. I want to have a shadow effect to the ImageView1.Can anyone tell me how can I do this? My codes are as follows:
main.xml
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/view88"
android:layout_alignParentLeft="true"
android:src="@drawable/hh" />
hh.xml in drawable folder
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="3"
android:thickness="10dp"
android:useLevel="false">
<solid android:color="#FFFFFF" />
<stroke android:width="5dp" android:color="#FFFFFF" />
<gradient
android:centerColor="@android:color/darker_gray"
android:endColor="@android:color/darker_gray"
android:startColor="@android:color/darker_gray" />
<size android:height="140dp"
android:width="120dp" />
</shape>