How to To Add Badge Item Count to icon in android app using android studio

0 6,882

Add Badge Item Count to icon

Welcome to another interesting tutorial related to Android. Today I am going to describe how you can Add Badge Item Count to icon your Android Application. A Badge is used to display number notification, item/product count, message etc. Not only Android supports it, a number of other Applications also make use of it for example Ipad, Iphone, Window and Web Apps.

We will make Application in which we will add Badge in Image button and Android button. It’s little bit complicated so there is no shortcut to implement it.


Before following these steps you must have installed JDK 7.0 or above and Android 2.0 on your device or PC.

  1. Create an xml file item_count_num and create a rectangle with 12dp corner radius, inside Drawable

2.Add Relativelayout, Buttons and text to modify activity_main.xml. The activity_main.xml will look as shown below. For this layout add the required images in the Drawable folder.

4.Now you can Run and test your application on any Android device.

Download Source code



Leave A Reply

Your email address will not be published.