material-components / material-components/material-components-android
[BadgeDrawable] Support animated appearing / disappearing
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 17.4k
- Forks
- 3.2k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Is your feature request related to a problem? Please describe.
Its about animating the badge appearing / disappearing. In past we added a custom implementation (Just a custom View) in our app, to introduce a scaling animation.
E.g.:

We want to switch to the new BadgeDrawable in our BottomNav and TabLayout, since it is supported in the new versions, but to animate the Badge is not possible in this way.
Describe the solution you'd like
Would be nice to make the bounds of the BadgeDrawable scaleable. I tried by myself, but the access to the bounds are hidden / not possible.
An additional idea would be to add more support to in/out animations.
- Like the setter methods for in / out animations of ViewAnimator.
- Also a dedicated callback method could be possible. Which sends you the drawable as parameter when appearing / disappearing, which allows you to manipulate the drawable (overtime or instant)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Lies zunächst BadgeDrawable und die Beispielanimation des Requests und vergleiche anschließend das gewünschte Skalierungs- sowie Ein-/Ausblendanimationsverhalten mit seiner Verwendung in BottomNav und TabLayout. Die Aufgabe wäre abgeschlossen, wenn eine definierte Möglichkeit bereitsteht, das Erscheinen und Verschwinden des Badges zu animieren, entweder über skalierbare Bounds oder über Unterstützung für Animationen und Callbacks.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java
- Bereich
- design, mobile
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100