How to create this shape drawable
问题 I want to create xml drawable to this shape, 回答1: use this layout and save in drawable folder..... <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <size android:width="200dp" android:height="50dp" /> <solid android:color="#ef45d1" /> <corners android:topRightRadius="20dp" /> </shape> </item> <item android:bottom="0dp" android:right="165dp" android:top="0dp"> <rotate android:fromDegrees="45"