Android Round Button Example

By | October 16, 2016

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.

Leave a Reply

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