Itempublic class Item extends Object implements android.os.ParcelableRepresents an Item COMPREHENSION-TLV object.
{@hide} |
Fields Summary |
---|
public int | idIdentifier of the item. | public String | textText string of the item. | public android.graphics.Bitmap | iconIcon of the item | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public Item(int id, String text)
this(id, text, null);
| public Item(int id, String text, android.graphics.Bitmap icon)
this.id = id;
this.text = text;
this.icon = icon;
| public Item(android.os.Parcel in)
id = in.readInt();
text = in.readString();
icon = in.readParcelable(null);
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public java.lang.String | toString()
return text;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(id);
dest.writeString(text);
dest.writeParcelable(icon, flags);
|
|