How to add Notification Counter in Android

Recently I had a chance to develop a social networking application, I had to create a notification bubble over friends and messages, So I managed to do it like this.


This can be achieved with this library.

Include library in your project and add below code for your view.

View target = findViewById(;
BadgeView badge = new BadgeView(this, target);

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s