[BadgeDrawable] cannot use a custom typeface
See original GitHub issueI’ve used the badge drawable for bottom navigation view. unfortunately, the typeface of the number badge cannot be changed and also it does not obey the fontFamily
attr that was defined in AppTheme. Please add an API to use text appearance or style for it.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Change BadgeDrawable Typeface in Android - Stack Overflow
I need to use a custom font for BadgeDrawable appears on top of my bottom navigation bar item. So I created a custom...
Read more >BadgeDrawable - Android Developers
You can use BadgeDrawable to display dynamic information such as a number of pending ... Badge and a custom style attribute are supported....
Read more >BadgeDrawable does not appear on elements other than ...
Use the code from this answer and the xml from this answer FrameLayout frameLayout = findViewById(R.id.frameLayout) ImageView imageView = findViewById(R.id.
Read more >android.util.AttributeSet#getStyleAttribute - ProgramCreek.com
setTypeface (Typeface.DEFAULT_BOLD); if (isInEditMode()) { // cannot use a drawable in edit mode, so setting the background color instead // of a background ......
Read more >Adding Badge count on menu items like cart , notification etc
We can create badge count using either a custom view or by adding a ... Create a custom drawable let us called BadgeDrawable....
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
Changing
android:textAppearance
font family doesn’t affect the number text, it only affects the text after theapp:maxCharacterCount
but the textSize applies to both. It’s really confusingIt’s still 2022?