In this post, we want to discuss a nice function to button shape using drawable in Android Studio. Before we get started, if you want to know about Listview binding in android, please go through the following article: How to bind simple Listview in Android.

How to Start

Now we create a drawable resource file as “button_shape” under the drawable folder in Android Studio. You can set some different properties like stroke, corner, padding and color etc. For test the process quickly, you may copy the following code:

Create a drawable resource file

Set background of desire button

Change style button shape using drawable in Android

The article was published on October 21, 2016 @ 11:21 PM

Leave a Comment