I want to use the background for my buttons. But when I use png, it slows down the application. Therefore, I want to use the xml form, but I do not know how to make a corner cut (for example, in the picture).

Now I have the following shape, which is just a rectangle:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/blue_semi_transparent"/>
<padding android:bottom="10dp" android:right="10dp" android:top="10dp" android:left="10dp"/>
<margin android:bottom="10dp" android:right="10dp" android:top="10dp" android:left="10dp"/>
</shape>
How to draw the bottom right corner?
source
share