Material Components
Material Components are modular, meaning developers can pick and choose specific UI elements (such as buttons, cards, text fields) based on their application's requirements. This modularity enhances flexibility and allows for easy integration into existing projects.
About the component

- Last Update 25 Oct, 2023
- Component Version : 2.0.0
- API 21, Android 5.0 Lollipop
- 29 Blocks Available
Material Badges are UI elements that indicate status, notifications, or counts associated with other UI elements, often buttons or icons. They are part of the Material Design system.
Overview
A visible component for creating Material Design badges.
Methods
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Alpha | float | 1.0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BackgroundColor | color | #F44336 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BadgeGravity | int |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | gravity | int | 8388661 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | HorizontalOffset | int | 0 |
2 | offset | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BadgeTextColor | color | #FFFFFF |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | HorizontalOffsetWithText | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | offset | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | count | int | -1 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Number | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | number | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | VerticalOffsetWithText | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | offset | int | 0 |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Visible | boolean | true |