public static class NavigationView.SavedState
extends AbsSavedState
java.lang.Object | ||
↳ | android.support.v4.view.AbsSavedState | |
↳ | android.support.design.widget.NavigationView.SavedState |
用于实现onSaveInstanceState()的NavigationView存储的用户界面状态。
Inherited constants |
---|
From interface android.os.Parcelable
|
Fields |
|
---|---|
public static final Creator<NavigationView.SavedState> |
CREATOR |
public Bundle |
menuState |
Inherited fields |
---|
From class android.support.v4.view.AbsSavedState
|
Public constructors |
|
---|---|
NavigationView.SavedState(Parcel in, ClassLoader loader) |
|
NavigationView.SavedState(Parcelable superState) |
Public methods |
|
---|---|
void |
writeToParcel(Parcel dest, int flags) 将此对象平铺到一个包裹中。 |
Inherited methods |
|
---|---|
From class android.support.v4.view.AbsSavedState
|
|
From class java.lang.Object
|
|
From interface android.os.Parcelable
|
NavigationView.SavedState (Parcel in, ClassLoader loader)
Parameters | |
---|---|
in |
Parcel
|
loader |
ClassLoader
|
NavigationView.SavedState (Parcelable superState)
Parameters | |
---|---|
superState |
Parcelable
|
void writeToParcel (Parcel dest, int flags)
将此对象平铺到一个包裹中。
Parameters | |
---|---|
dest |
Parcel : The Parcel in which the object should be written. |
flags |
int : Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . |