Most visited

Recently visited

Added in API level 1

TextView.SavedState

public static class TextView.SavedState
extends View.BaseSavedState

java.lang.Object
   ↳ android.view.AbsSavedState
     ↳ android.view.View.BaseSavedState
       ↳ android.widget.TextView.SavedState


由TextView存储的用于实现 onSaveInstanceState()用户界面状态。

Summary

Inherited constants

From interface android.os.Parcelable

Fields

public static final Creator<TextView.SavedState> CREATOR

Inherited fields

From class android.view.View.BaseSavedState
From class android.view.AbsSavedState

Public methods

String toString()

返回对象的字符串表示形式。

void writeToParcel(Parcel out, int flags)

将此对象平铺到一个包裹中。

Inherited methods

From class android.view.View.BaseSavedState
From class android.view.AbsSavedState
From class java.lang.Object
From interface android.os.Parcelable

Fields

CREATOR

Added in API level 1
Creator<TextView.SavedState> CREATOR

Public methods

toString

Added in API level 1
String toString ()

返回对象的字符串表示形式。 一般来说, toString方法返回一个“文本表示”该对象的字符串。 结果应该是一个简洁但内容丰富的表述,对于一个人来说很容易阅读。 建议所有子类重写此方法。

ObjecttoString方法返回一个字符串,其中包含对象为实例的类的名称,符号字符“ @ ”以及对象的哈希代码的无符号十六进制表示形式。 换句话说,这个方法返回一个字符串,其值等于:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.

writeToParcel

Added in API level 1
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.

Hooray!