public static class TextView.SavedState
extends View.BaseSavedState
| java.lang.Object | |||
| android.view.AbsSavedState | |||
| android.view.View.BaseSavedState | |||
| android.widget.TextView.SavedState | |||
由TextView存储的用于实现 onSaveInstanceState()用户界面状态。
Inherited constants |
|---|
android.os.Parcelable
|
Fields |
|
|---|---|
public static final Creator<TextView.SavedState> |
CREATOR |
Inherited fields |
|---|
android.view.View.BaseSavedState
|
android.view.AbsSavedState
|
公共方法(Public methods) |
|
|---|---|
String |
toString() 返回对象的字符串表示形式。 |
void |
writeToParcel(Parcel out, int flags) 将此对象平铺到一个包裹中。 |
继承方法(Inherited methods) |
|
|---|---|
android.view.View.BaseSavedState
|
|
android.view.AbsSavedState
|
|
java.lang.Object
|
|
android.os.Parcelable
|
|
String toString ()
返回对象的字符串表示形式。 一般来说, toString方法返回一个“文本表示”该对象的字符串。 结果应该是一个简洁但内容丰富的表述,对于一个人来说很容易阅读。 建议所有子类重写此方法。
类Object的toString方法返回一个字符串,其中包含对象为实例的类的名称,符号字符“ @ ”以及对象的哈希代码的无符号十六进制表示形式。 换句话说,这个方法返回一个字符串,其值等于:
getClass().getName() + '@' + Integer.toHexString(hashCode())
| 返回(Returns) | |
|---|---|
String |
a string representation of the object. |
void writeToParcel (Parcel out, int flags)
将此对象平铺到一个包裹中。
| 参数(Parameters) | |
|---|---|
out |
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. |