Here, when I clicked on these left and right arrow button , at this time I want to see these effects on the button. The same thing happens in Iphone/IOS by default.
Can i make this effect?
Here I mentioned what exactly I want.

Here I used these xml files, but did not get success.
button_pressed.xml
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"><shape> <gradient android:angle="180" android:centerColor="#657377" android:endColor="#AFFFFFFF" android:startColor="#FFFFFFFF" android:type="linear"/> <corners android:radius="10dp" /> </shape></item> </selector>
EDIT
I used the android:background="@drawable/button_pressed.xml" string android:background="@drawable/button_pressed.xml" , but I didnโt get what I need.
I tried:
I used this xml file according to Piyush's answer, but I did not get success, and I get this effect.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <solid android:color="@color/transparent" /> </shape> </item> <item> <shape android:innerRadiusRatio="4" android:shape="ring" android:thicknessRatio="9" android:useLevel="false" > <gradient android:endColor="#00000000" android:gradientRadius="250" android:startColor="#ffffffff" android:type="radial" /> </shape> </item> </layer-list>
I agreed to the top and bottom because I have limited space in the layout for this button. what will we think later, but why doesnโt it act like shadow and alpha, and all the same that I mentioned?
OUTPUT: 
Please help me. If anyone has an idea about this.
Thanks at Advance.
sam_k source share