[BadgeDrawable] add margin for Badge
See original GitHub issueI’m using badge with BottomNavigationView
,
but the badge position only change by gravity
,
so I can’t control the position of badge
Is there any plan to add something like margin
to control the position of badge?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:10 (7 by maintainers)
Top Results From Across the Web
android - Badge on bottomNavigationView padding or margin
You can use the method setVerticalOffset : BadgeDrawable badge = bottomNavigationView.getOrCreateBadge(menuItemId); badge.setNumber(.
Read more >BadgeDrawable - Android Developers
Add BadgeDrawable as a ViewOverlay to the desired anchor view using BadgeUtils#attachBadgeDrawable(BadgeDrawable, View, FrameLayout) (This ...
Read more >Badge - Material Design
Add BadgeDrawable as a ViewOverlay to the desired anchor view. Update the BadgeDrawable's coordinates (center and bounds) based on its anchor view using ......
Read more >Badge on bottomNavigationView padding or margin-kotlin
Coding example for the question Badge on bottomNavigationView padding or margin-kotlin. ... BadgeDrawable badge = bottomNavigationView.
Read more >Badge On Bottomnavigationview Padding Or Margin - ADocLib
Drawable Badge Drawable Badge is a android library for adding badges to badgeMargin : Badge margin supported @DimenRes or @Px default 0. To...
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
if you are using BottomNavigationView, you can reposition the badge like this
@miladsalimiiii have a try