I'm trying to make this button.
I try to do it in a similar way, something like:
<?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:startColor="#ff297baf" android:endColor="#ff16c0e3" android:type="linear" android:angle="0" /> </shape> </item> <item android:top="3dp" android:right="3dp" android:left="3dp" android:bottom="3dp" > <shape android:shape="rectangle" > <solid android:color="#FFFFFFFF" /> </shape> </item> </layer-list> those. I'm trying to make one shape a gradient and inside it another piece is just white with indents, but I see either one gradient or only white, I tried to indent both there and there. What could be the problem? How to make nested shapes?

