mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Merge "BottomNavigationView javadoc fix up." into nyc-mr1-dev
GitOrigin-RevId=498c267573ddbdef66271e144af6b006c4d74742 PiperOrigin-RevId: 140564800
This commit is contained in:
parent
d4461c00eb
commit
f8ecb8dded
@ -177,9 +177,9 @@ public class BottomNavigationMenuView extends ViewGroup implements MenuView {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tint which is applied to the menu items' icons.
|
||||
* Sets the tint which is applied to the menu items' icons.
|
||||
*
|
||||
* @param tint the tint to apply.
|
||||
* @param tint the tint to apply
|
||||
*/
|
||||
public void setIconTintList(ColorStateList tint) {
|
||||
mItemIconTint = tint;
|
||||
@ -192,7 +192,7 @@ public class BottomNavigationMenuView extends ViewGroup implements MenuView {
|
||||
/**
|
||||
* Returns the tint which is applied to menu items' icons.
|
||||
*
|
||||
* @return The ColorStateList that is used to tint menu items' icons.
|
||||
* @return the ColorStateList that is used to tint menu items' icons
|
||||
*/
|
||||
@Nullable
|
||||
public ColorStateList getIconTintList() {
|
||||
@ -200,7 +200,7 @@ public class BottomNavigationMenuView extends ViewGroup implements MenuView {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the text color to be used on menu items.
|
||||
* Sets the text color to be used on menu items.
|
||||
*
|
||||
* @param color the ColorStateList used for menu items' text.
|
||||
*/
|
||||
@ -215,15 +215,16 @@ public class BottomNavigationMenuView extends ViewGroup implements MenuView {
|
||||
/**
|
||||
* Returns the text color used on menu items.
|
||||
*
|
||||
* @return the ColorStateList used for menu items' text.
|
||||
* @return the ColorStateList used for menu items' text
|
||||
*/
|
||||
public ColorStateList getItemTextColor() {
|
||||
return mItemTextColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the resource id to be used for item background.
|
||||
* @param background the resource id of the background.
|
||||
* Sets the resource ID to be used for item background.
|
||||
*
|
||||
* @param background the resource ID of the background
|
||||
*/
|
||||
public void setItemBackgroundRes(int background) {
|
||||
mItemBackgroundRes = background;
|
||||
@ -234,9 +235,9 @@ public class BottomNavigationMenuView extends ViewGroup implements MenuView {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the background resource of the menu items.
|
||||
* Returns the resource ID for the background of the menu items.
|
||||
*
|
||||
* @return the resource id of the background.
|
||||
* @return the resource ID for the background
|
||||
*/
|
||||
public int getItemBackgroundRes() {
|
||||
return mItemBackgroundRes;
|
||||
|
||||
@ -234,10 +234,13 @@ public class BottomNavigationView extends FrameLayout {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the text color used on menu items.
|
||||
* Returns colors used for the different states (normal, selected, focused, etc.) of the menu
|
||||
* item text.
|
||||
*
|
||||
* @see #setItemTextColor(ColorStateList)
|
||||
*
|
||||
* @return the ColorStateList of colors used for the different states of the menu items text.
|
||||
*
|
||||
* @attr ref R.styleable#BottomNavigationView_itemTextColor
|
||||
*/
|
||||
@Nullable
|
||||
@ -246,7 +249,8 @@ public class BottomNavigationView extends FrameLayout {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the text color to be used on menu items.
|
||||
* Set the colors to use for the different states (normal, selected, focused, etc.) of the menu
|
||||
* item text.
|
||||
*
|
||||
* @see #getItemTextColor()
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user