material-components / material-components/material-components-android

[BadgeDrawable] Allow to set drawable as a background

Open
#826 23 comments 21 reactions 0 assignees View on GitHub
Awaiting Design Feedback feature request Widget: Badge
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
There is no chance to add stroke to badge which is great to have in case BottomNavigationView.Item's icon color is the same as badge's color

**Describe the solution you'd like**
Allow to customize background with drawable

**Describe alternatives you've considered**
- Allow to customize strokeWidth and strokeColor of internal ShapeDrawable

**Additional context**
I wouldn't mind to contribute with PR if there will be final decision on solution/approach

- Allow drawable background
- Allow to customize strokeWidth/strokeColor

Contributor guide

Open the contributing guide

Research direction

Start by reviewing BadgeDrawable and the issue discussion to determine whether customizable drawable backgrounds or strokeWidth/strokeColor is the accepted approach. Trace the existing background behavior and identify the relevant Android UI tests; done means the chosen customization is supported and its behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
design, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.