问题 I want to make a button shape like this Is there a way to do this with XML ? Actually I am looking for like this 回答1: It is not exactly what you are looking for, because it is not with realized with a XML. However with the new MaterialButton it is very simple to obtain it: Just define the Button in your layout: <com.google.android.material.button.MaterialButton app:cornerRadius="0dp" android:paddingLeft="24dp" android:paddingRight="12dp" .../> Then just use the ShapeAppearanceModel to define