implements Parcelable
Defines styling options for a NavigationView
or NavigationFragment
.
Inherited Constant Summary
Field Summary
public static final Creator<StylingOptions> | CREATOR |
Public Constructor Summary
StylingOptions()
Creates an object with the default styling.
|
|
StylingOptions(StylingOptions stylingOptions)
Creates an object which is a copy of the specified styling options.
|
Public Method Summary
int | |
Integer |
getPrimaryDayModeThemeColor()
Returns the primary day-mode color for the UI theme.
|
Integer |
getPrimaryNightModeThemeColor()
Returns the primary night-mode color for the UI theme.
|
Integer |
getSecondaryDayModeThemeColor()
Returns the secondary day-mode color for the UI theme.
|
Integer |
getSecondaryNightModeThemeColor()
Returns the secondary night-mode color for the UI theme.
|
StylingOptions |
primaryDayModeThemeColor(int color)
Sets the primary day-mode color for the UI theme.
|
StylingOptions |
primaryNightModeThemeColor(int color)
Sets the primary night-mode color for the UI theme.
|
StylingOptions |
secondaryDayModeThemeColor(int color)
Sets the secondary day-mode color for the UI theme.
|
StylingOptions |
secondaryNightModeThemeColor(int color)
Sets the secondary night-mode color for the UI theme.
|
void |
writeToParcel(Parcel out, int flags)
|
Inherited Method Summary
Fields
Public Constructors
public StylingOptions ()
Creates an object with the default styling.
public StylingOptions (StylingOptions stylingOptions)
Creates an object which is a copy of the specified styling options.
Parameters
stylingOptions |
---|
Public Methods
public int describeContents ()
public Integer getPrimaryDayModeThemeColor ()
Returns the primary day-mode color for the UI theme.
Returns
- an Integer representing the ARGB color, or
null
if no color is set
public Integer getPrimaryNightModeThemeColor ()
Returns the primary night-mode color for the UI theme.
Returns
- an Integer representing the ARGB color, or
null
if no color is set
public Integer getSecondaryDayModeThemeColor ()
Returns the secondary day-mode color for the UI theme.
Returns
- an Integer representing the ARGB color, or
null
if no color is set
public Integer getSecondaryNightModeThemeColor ()
Returns the secondary night-mode color for the UI theme.
Returns
- an Integer representing the ARGB color, or
null
if no color is set
public StylingOptions primaryDayModeThemeColor (int color)
Sets the primary day-mode color for the UI theme.
Parameters
color | the ARGB color |
---|
Returns
- the object for which the method was called, with the new color set
public StylingOptions primaryNightModeThemeColor (int color)
Sets the primary night-mode color for the UI theme.
Parameters
color | the ARGB color |
---|
Returns
- the object for which the method was called, with the new color set
public StylingOptions secondaryDayModeThemeColor (int color)
Sets the secondary day-mode color for the UI theme.
Parameters
color | the ARGB color |
---|
Returns
- the object for which the method was called, with the new color set
public StylingOptions secondaryNightModeThemeColor (int color)
Sets the secondary night-mode color for the UI theme.
Parameters
color | the ARGB color |
---|
Returns
- the object for which the method was called, with the new color set
public void writeToParcel (Parcel out, int flags)
Parameters
out | |
---|---|
flags |