Annotationpublic class Annotation extends Object implements ParcelableSpanAnnotations are simple key-value pairs that are preserved across
TextView save/restore cycles and can be used to keep application-specific
data that needs to be maintained for regions of text. |
Fields Summary |
---|
private final String | mKey | private final String | mValue |
Constructors Summary |
---|
public Annotation(String key, String value)
mKey = key;
mValue = value;
| public Annotation(android.os.Parcel src)
mKey = src.readString();
mValue = src.readString();
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | getKey()
return mKey;
| public int | getSpanTypeId()
return TextUtils.ANNOTATION;
| public java.lang.String | getValue()
return mValue;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeString(mKey);
dest.writeString(mValue);
|
|