I am using TabLayout of android support design library.
I want to show unread notification counter on the tab with title like below image.
How to set unread count on Tab
inside TabLayout
?
Use public TabLayout.Tab setCustomView (int layoutResId)
Create a Layout
with TextView
and Button
use this in Custom view.
For reference
setCustomView
Example
Hope this will helpful to you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With