public abstract class AbstractSavedState
extends java.lang.Object
implements android.os.Parcelable
AbsSavedState of the Android SDK, except for the
fact, that it does use a custom class loader instead of the system's one. The reason for this is,
that using the class AbsSavedState in a library project, may cause a BadParcelableException to be thrown when unmarshalling.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSavedState(android.os.Parcel source)
Creates a new data structure, which allows to store the internal state of a view.
|
protected |
AbstractSavedState(android.os.Parcelable superState)
Creates a new data structure, which allows to store the internal state of a view.
|
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
android.os.Parcelable |
getSuperState()
Returns the state of the superclass of the view, this saved state corresponds to.
|
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected AbstractSavedState(android.os.Parcel source)
source - The parcel to read read from as a instance of the class Parcel. The parcel
may not be nullprotected AbstractSavedState(android.os.Parcelable superState)
superState - The state of the superclass of the view, this saved state corresponds to, as an
instance of the type Parcelable or null if no state is availablepublic final android.os.Parcelable getSuperState()
Parcelable or null, if no state is availablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelable