dest.writeString(title);
dest.writeParcelable(titleIcon, flags);
// write items list to the parcel.
int size = items.size();
dest.writeInt(size);
for (int i=0; i<size; i++) {
dest.writeParcelable(items.get(i), flags);
}
dest.writeInt(defaultItem);
dest.writeInt(softKeyPreferred ? 1 : 0);
dest.writeInt(helpAvailable ? 1 : 0);
dest.writeInt(titleIconSelfExplanatory ? 1 : 0);
dest.writeInt(itemsIconSelfExplanatory ? 1 : 0);
dest.writeInt(presentationType.ordinal());