There are 4 tabs in my app and i want to show my notification count on one of them tab i.e. Notification Tab. Can anyone help me that how i should do this. It will be very helpful for me. Thanks in advance
Asked
Active
Viewed 1,209 times
1
-
2Check: [Badge on Android TabHost](http://stackoverflow.com/questions/8292679/badge-on-android-tabhost) – Paresh Mayani Nov 26 '13 at 06:47
-
http://stackoverflow.com/a/16360564/1939564 – Muhammad Babar Nov 26 '13 at 06:54
-
Thnk u guys. It is really helpful – Anurag Srivastava Nov 26 '13 at 07:08
1 Answers
1
Add the badge using the BadgeView
class Which is already given HERE. Copy the class in your application and use it as below:
private BadgeView badge1;
private TabWidget m_tabs;
m_tabs = (TabWidget) findViewById(android.R.id.tabs);
badge1 = new BadgeView(this, m_tabs, 0);
badge1.setText("5");
badge1.show();
Hope this will help you.

GrIsHu
- 29,068
- 10
- 64
- 102