public class BottomNavigationItem
extends java.lang.Object
| Constructor and Description |
|---|
BottomNavigationItem(android.graphics.drawable.Drawable mIcon,
int mTitleResource) |
BottomNavigationItem(android.graphics.drawable.Drawable mIcon,
java.lang.String mTitle) |
BottomNavigationItem(int mIconResource,
int mTitleResource) |
BottomNavigationItem(int mIconResource,
java.lang.String mTitle) |
| Modifier and Type | Method and Description |
|---|---|
BottomNavigationItem |
setActiveColor(int color) |
BottomNavigationItem |
setActiveColor(java.lang.String colorCode) |
BottomNavigationItem |
setActiveColorResource(int colorResource) |
BottomNavigationItem |
setBadgeItem(ShapeBadgeItem badgeItem) |
BottomNavigationItem |
setBadgeItem(TextBadgeItem badgeItem) |
BottomNavigationItem |
setInActiveColor(int color) |
BottomNavigationItem |
setInActiveColor(java.lang.String colorCode) |
BottomNavigationItem |
setInActiveColorResource(int colorResource) |
BottomNavigationItem |
setInactiveIcon(android.graphics.drawable.Drawable mInactiveIcon)
By default library will switch the color of icon provided (in between active and in-active icons)
This method is used, if people need to set different icons for active and in-active modes.
|
BottomNavigationItem |
setInactiveIconResource(int mInactiveIconResource)
By default library will switch the color of icon provided (in between active and in-active icons)
This method is used, if people need to set different icons for active and in-active modes.
|
public BottomNavigationItem(int mIconResource,
java.lang.String mTitle)
mIconResource - resource for the Tab icon.mTitle - title for the Tab.public BottomNavigationItem(android.graphics.drawable.Drawable mIcon,
java.lang.String mTitle)
mIcon - drawable icon for the Tab.mTitle - title for the Tab.public BottomNavigationItem(android.graphics.drawable.Drawable mIcon,
int mTitleResource)
mIcon - drawable icon for the Tab.mTitleResource - resource for the title.public BottomNavigationItem(int mIconResource,
int mTitleResource)
mIconResource - resource for the Tab icon.mTitleResource - resource for the title.public BottomNavigationItem setInactiveIcon(android.graphics.drawable.Drawable mInactiveIcon)
mInactiveIcon - in-active drawable iconpublic BottomNavigationItem setInactiveIconResource(int mInactiveIconResource)
mInactiveIconResource - resource for the in-active icon.public BottomNavigationItem setActiveColorResource(int colorResource)
colorResource - resource for active colorpublic BottomNavigationItem setActiveColor(java.lang.String colorCode)
colorCode - color code for active colorpublic BottomNavigationItem setActiveColor(int color)
color - active colorpublic BottomNavigationItem setInActiveColorResource(int colorResource)
colorResource - resource for in-active colorpublic BottomNavigationItem setInActiveColor(java.lang.String colorCode)
colorCode - color code for in-active colorpublic BottomNavigationItem setInActiveColor(int color)
color - in-active colorpublic BottomNavigationItem setBadgeItem(ShapeBadgeItem badgeItem)
badgeItem - badge that needs to be displayed for this tabpublic BottomNavigationItem setBadgeItem(TextBadgeItem badgeItem)
badgeItem - badge that needs to be displayed for this tab