1

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

1 Answers1

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