How to add a gradient shadow to the right and left of the background?
The next one layer-listadds a black border to the right and left of the background, not a gradient border.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item>
<shape android:shape="rectangle" >
<gradient
android:angle="0"
android:centerColor="#ffffff"
android:endColor="#000000"
android:startColor="#000000" />
</shape>
</item>
<item
android:left="2dp"
android:right="2dp">
<shape android:shape="rectangle" >
<solid android:color="@color/blue" />
</shape>
</item>
</layer-list>
I am trying to add a black shadow from the right and left background.
source
share