BadgeView
BadgeView copied to clipboard
SHOW BADGES ON TAB LAYOUT
Is it possible to bind a Qbadge on a TabLayout? How to achieve this? Thanks
new QBadgeView(context).bindTarget(textview).setBadgeNumber(5);
you just need to find the textview in TabLayout. Such as:
textview = ((ViewGroup) mTabLayout.getChildAt(0)).getChildAt(tabindex).getChildAt(1)
remove the lastest getChildAt(1) to add the badge on TabView instead of TextView for simple.
for more details look stackoverflow.com
all you need is to know some detail about Tablayout.