Вы можете использовать что-то вроде этого:
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#587E9B">
<Button
android:id="@+id/button5"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintHeight_percent="0.4"
app:layout_constraintDimensionRatio="1:1"
android:text="Button"
android:background="@drawable/my_shape"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
drawable / my_shape
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="12dp" />
<solid android:color="#CF2525" />
<corners
android:topLeftRadius="60dp"
android:bottomRightRadius="60dp"
android:bottomLeftRadius="60dp"/>
<stroke
android:width="1dp"
android:color="@android:color/black" />
</shape>
Вот как это будет выглядеть:
Теперь все, что вам нужно сделать, это изменить corners
внутри drawable/my_shape