FileDocCategorySizeDatePackage
Annotation.javaAPI DocAndroid 1.5 API1604Wed May 06 22:41:56 BST 2009android.text

Annotation

public class Annotation extends Object implements ParcelableSpan
Annotations 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 intdescribeContents()

        return 0;
    
public java.lang.StringgetKey()

        return mKey;
    
public intgetSpanTypeId()

        return TextUtils.ANNOTATION;
    
public java.lang.StringgetValue()

        return mValue;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeString(mKey);
        dest.writeString(mValue);