material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[BadgeDrawable] Added shape customizations

Open gabrielemariotti opened this issue 5 years ago • 4 comments

This PR adds some features to the BadgeDrawable:

  • Use of shapeAppearance/shapeAppearanceOverlay in the badge style to customize the shape of the badge:

Schermata 2020-08-20 alle 21 45 59Schermata 2020-08-20 alle 21 57 02Schermata 2020-08-20 alle 12 47 37

  • badgeRadius/badgeWithTextRadius to customize the badge radius(or size):
Schermata 2020-08-20 alle 22 09 42
  • badgeStrokeColor / badgeStrokeWidth to customize the badge stroke

Schermata 2020-08-20 alle 21 56 19 Schermata 2020-08-20 alle 21 55 28

It preserves the current default behavior.

It can close #1200, #826.

gabrielemariotti avatar Aug 20 '20 21:08 gabrielemariotti

was there any update on the design feedback for this?

panpanini avatar Feb 04 '21 01:02 panpanini

Any progress?

akhbulatov avatar Mar 18 '22 23:03 akhbulatov

when can we expect changes?

Igor755 avatar Jun 09 '22 13:06 Igor755

Any updates on this? Possibility of adding a stroke to a badge would be highly appreciated.

tbress89 avatar Jun 30 '22 14:06 tbress89