[TabLayout] setHeight(or setSize) for TabItem's BadgeDrawable ?
See original GitHub issueHello
How can I set height(or size) for BadgeDrawable in TabLayout ?
TabLayoutMediator(view.tabLayout, view.viewPager, TabLayoutMediator.TabConfigurationStrategy { tab, position ->
tab.orCreateBadge.apply {
backgroundColor = Color.parseColor("#db635d")
horizontalOffset = -10
}
tab.text = when (position) {
0 -> "주문 내역"
1 -> "받은 선물"
else -> null
}
}).attach()
expected
but I’ve got
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
BadgeDrawable - Android Developers
BadgeDrawable contains all the layout and draw logic for a badge. ... Returns the height at which the badge would like to be...
Read more >Android Tablayout tabs with notification badge like whatsApp
With the newest release of the Material Components , the Android team now offers an official BadgeDrawable to be used on the TabLayout...
Read more >Notification BadgeDrawable + viewpager2 with tablayout ...
Need Help or Code Support? Feel Free To Contact Us Here http://www.aaviskar.com/support.phpThis videos shows implementation of Notification ...
Read more >Android Tab Layout + Badge Drawable + View Pager 2
Android Tab Layout + Badge Drawable + View Pager 2 | Material Design Components | Android StudioIn this tutorial we will create a...
Read more >log: com.newsblur:204 - F-Droid Monitor
BadgeDrawable $1 com.google.android.material.badge. ... TabLayout$SlidingTabIndicator$2 com.google.android.material.tabs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t know if I came on time but I found a simple patch to make it bigger, the idea is attach it and then clear its number I tested with 1.3.0:alpha02 here is a kotlin example:
Hey @wcshi! Friendly ping. Can we close this issue now?