Android - make an arrow shape with xml
I want to make a button for my shape like this one Is there a way to do this with xml ? Like setting some points, in my case I have 5.. What you need is to create a shape xml file in your project's drawable-xxx folder and then use this shape as background for a button. Here is the shape file called arrow_shape.xml : <?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <!-- Colored rectangle--> <item> <shape android:shape="rectangle"> <size android:width="100dp" android:height="40dp" /> <solid android:color="#5EB888" /> <corners android