aurelhubert / aurelhubert/ahbottomnavigation
Custom drawable as badge
- Dominant language
- Java
- Stars
- 3.8k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
We want to show not a number but just an image as the badge. For example, an exclamation mark as error or spinner as a progress indicator. I've tried a workaround to pass drawable as a background of the badge and the empty string as badge text. That doesn't work well since it is stretching the drawable:
![]()
Are there good solution for our problem?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the repository's badge rendering path and inspect how a drawable supplied as the badge background is measured and drawn. The issue's screenshot and workaround show the current stretching behavior; done means an image badge can be displayed without distortion, alongside the existing text badge behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100