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
The Material Navigation component in AB creates horizontal or vertical navigation bars with animation. It provides events for item selection (ItemSelected, NumberItemSelected) and offers methods to add/remove items, badges, select items, and set margins/padding. Properties allow customization of colors, icon size, elevation, height, width, and label visibility, as well as the appearance of the selected/unselected items and the ripple effect. Furthermore, it allows enabling/disabling horizontal transitions.
Overview
Events
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | title | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | title | string |
Methods
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | title | string | |
3 | image | string | |
4 | badgeNumber | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | color | number | |
3 | textColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | left | number | |
2 | top | number | |
3 | right | number | |
4 | bottom | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | left | number | |
2 | top | number | |
3 | right | number | |
4 | bottom | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | badgeGravity | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | id | number | |
2 | title | string | |
3 | image | string | |
4 | badgeNumber | string |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | enabled | boolean |
Properties
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BackgroundColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | BackgroundColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | IconSize | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | IconSize | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Elevation | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Elevation | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Height | Integer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Width | Integer |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemActiveIndicatorColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemActiveIndicatorColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemActiveIndicatorEnabled | boolean |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | enabled | boolean |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemActiveIndicatorMargin | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemActiveIndicatorMargin | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemPaddingBottom | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemPaddingBottom | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemPaddingTop | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemPaddingTop | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | LabelVisibility | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | LabelVisibility | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | RippleColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | RippleColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | SelectedColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | SelectedColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | UnselectedColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | UnselectedColor | number |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemHorizontalTranslationEnabled | boolean |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | ItemHorizontalTranslationEnabled | boolean |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Visible | boolean |
# | Name | Type(s) | Default Value |
---|---|---|---|
1 | Visible | boolean |