Skip to content

Commit 7a189d5

Browse files
Material Design Teamdsn5ft
authored andcommitted
[Badges] Restructure the documentation for clarity.
PiperOrigin-RevId: 784014681
1 parent 3d43f71 commit 7a189d5

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

docs/components/BadgeDrawable.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,6 @@ variants of badges.
2222

2323
**Note:** Images use various dynamic color schemes.
2424

25-
Before you can use Material badges, you need to add a dependency to the Material
26-
components for Android library. For more information, go to the
27-
[Getting started](https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md)
28-
page.
29-
30-
**Note:** This component is still under development and may not support the full
31-
range of customization Material Android components generally support, for
32-
instance, themed attributes.
33-
34-
A `BadgeDrawable` represents dynamic information such as a number of pending
35-
requests in a [`BottomNavigationView`](BottomNavigation.md) or
36-
[`TabLayout`](Tabs.md).
37-
3825
## Design & API documentation
3926

4027
* [Material 3 (M3) spec](https://m3.material.io/components/badges/overview)
@@ -77,6 +64,21 @@ label will be `app:badgeText`.
7764

7865
## Code implementation
7966

67+
Before you can use Material badges, you need to add a dependency to the Material
68+
components for Android library. For more information, go to the
69+
[Getting started](https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md)
70+
page.
71+
72+
**Note:** This component is still under development and may not support the full
73+
range of customization Material Android components generally support, for
74+
instance, themed attributes.
75+
76+
A `BadgeDrawable` represents dynamic information such as a number of pending
77+
requests in a [`BottomNavigationView`](BottomNavigation.md) or
78+
[`TabLayout`](Tabs.md).
79+
80+
### Adding badges
81+
8082
![Two variants of badges](assets/badge/badges_hero.png)
8183

8284
1. Small badge on a navigation item
-11.5 KB
Binary file not shown.
-11.9 KB
Binary file not shown.
-9.58 KB
Binary file not shown.

0 commit comments

Comments
 (0)