Make a button as per a picture you have to implement this below following steps.
Right click on drawable
Click on New
Create new drawable resource file
Enter file name.
After this enter below code.
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="50dp"/>
// If you want to change shape than change the radius 50dp to 100dp
<solid android:color="@color/purple"></solid>
// If you change your background color then change color purple to another color
</shape>
And to use in your activity just like below
<Button
android:id="@+id/btn_login"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dip"
android:background="@drawable/rounded_corner"
// After drawable/ use your file name where above code is pasted
android:text="@string/btn_login"
android:textSize="20dp"
android:textColor="@android:color/white" />
You can use this shape in all view like TextView, EditText, Button and etc.
2
Answers
Make a button as per a picture you have to implement this below following steps.
After this enter below code.
And to use in your activity just like below
You can use this shape in all view like TextView, EditText, Button and etc.
Copy the below code and remove unwanted things
XML
STYLE
DRAWABLE