Android Round Button Example

In this tutorial you will learn how to create a round button in android.

Shape drawable resource is used to define shape of a view. Below I have shared an example to to make a circle button.

Android Round Button Example

Create a xml file inside res/drawable folder.



shape: Defines shape of view. It can be rectangle, oval, line and ring. In this case we are using oval shape to make the button circular.

stroke: Defines boundary of shape.

solid: Defines background color of shape.

size: Defines size of shape.


Now set this xml as background of the button.

The button will look like:

Android Round Button Example

You can customize its color and size according to your need.

1 thought on “Android Round Button Example”

Leave a Comment

Your email address will not be published. Required fields are marked *