In designing android layout screens sometimes we want buttons to be rounded at corners and also we can make it completely circle i.e., O in shape.  

So lets start it by

 

Making our shape as rectangle

 

Next step is setting up some padding this you can adjust according to you wish.

 

Then here comes our color.

 

At last set you radius at every corner for rounded corner button make sure all the sides are same.

 

android:topLeftRadius="10dp"
android:topRightRadius="10dp"
android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"

Creating round.xml :

Save it as a xml file in drawable folder and set this as background to your button.

Setting up with you button :

android:background=“@drawable/rounded”

 

Show Buttons
Hide Buttons
Read previous post:
Android Snackbar Tutorial With Material Design

Close