How to make a button in android studio with rounded corners.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our W3Make Forum to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
<?xml version=”1.0″ encoding=”utf-8″?>
<shape xmlns:android=”http://schemas.android.com/apk/res/android”
android:shape=”rectangle” android:padding=”10dp”>
<!– you can use any color you want I used here gray color–>
<solid android:color=”#ABABAB”/>
<corners android:radius=”10dp”/>
</shape>
Change the radius according to corner and also change the colour according to your need