BadgeView icon indicating copy to clipboard operation
BadgeView copied to clipboard

SHOW BADGES ON TAB LAYOUT

Open Gaetano-Dati opened this issue 8 years ago • 1 comments

Is it possible to bind a Qbadge on a TabLayout? How to achieve this? Thanks

Gaetano-Dati avatar Jan 23 '18 07:01 Gaetano-Dati

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.

hyfink avatar Feb 06 '18 09:02 hyfink