I am trying to create my own EditText that has both rounded corners and an inner shadow.

I created a list of layers that creates an inner shadow,
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item > <shape android:shape="rectangle"> <solid android:color="#6C6C6C" /> </shape> </item> <item> <shape android:shape="rectangle"> <solid android:color="@color/ashes" /> </shape> </item> <item android:top="3px" android:left="3px"> <shape android:shape="rectangle"> <solid android:color="#FFFFFF" /> </shape> </item> </layer-list>
The result is as follows:

How can I add a rounded shape?
android android-layout android-ui
Fall into infinity
source share