本文整理汇总了Java中android.os.Parcel.readArrayList方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readArrayList方法的具体用法?Java Parcel.readArrayList怎么用?Java Parcel.readArrayList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readArrayList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
SavedState(Parcel in) {
mAnchorPosition = in.readInt();
mVisibleAnchorPosition = in.readInt();
mSpanOffsetsSize = in.readInt();
if (mSpanOffsetsSize > 0) {
mSpanOffsets = new int[mSpanOffsetsSize];
in.readIntArray(mSpanOffsets);
}
mSpanLookupSize = in.readInt();
if (mSpanLookupSize > 0) {
mSpanLookup = new int[mSpanLookupSize];
in.readIntArray(mSpanLookup);
}
mReverseLayout = in.readInt() == 1;
mAnchorLayoutFromEnd = in.readInt() == 1;
mLastLayoutRTL = in.readInt() == 1;
//noinspection unchecked
mFullSpanItems = in.readArrayList(
LazySpanLookup.FullSpanItem.class.getClassLoader());
}
示例2: TransactionInfo
import android.os.Parcel; //导入方法依赖的package包/类
private TransactionInfo(Parcel in) {
direction = Direction.fromInteger(in.readInt());
isPending = in.readByte() != 0;
isFailed = in.readByte() != 0;
amount = in.readLong();
fee = in.readLong();
blockheight = in.readLong();
hash = in.readString();
timestamp = in.readLong();
paymentId = in.readString();
confirmations = in.readLong();
transfers = in.readArrayList(Transfer.class.getClassLoader());
txKey = in.readString();
notes = in.readString();
}
示例3: createFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override
public Stroke createFromParcel(Parcel source) {
Stroke oStroke = new Stroke();
oStroke.sectionId = source.readInt();
oStroke.ownerId = source.readInt();
oStroke.noteId = source.readInt();
oStroke.pageId = source.readInt();
oStroke.color = source.readInt();
oStroke.type = source.readInt();
oStroke.penTipType = source.readInt();
oStroke.dots = source.readArrayList( Dot.class.getClassLoader() );
return oStroke;
}
示例4: DaySchedulesContainer
import android.os.Parcel; //导入方法依赖的package包/类
private DaySchedulesContainer(Parcel in) {
date = new Date(in.readLong());
List<DayScheduleContainer> days = new ArrayList<>();
days = in.readArrayList(days.getClass().getClassLoader());
for (DayScheduleContainer day : days)
schedules.put(day.getCode(), day.getClasses());
}
示例5: AdElementMime
import android.os.Parcel; //导入方法依赖的package包/类
private AdElementMime(Parcel source) {
boolean z = true;
this.errCode = -1;
this.hadExposed = false;
this.hadComplete = false;
this.vastTag = source.readInt();
this.adTag = source.readInt();
this.adReqType = source.readInt();
this.adZoneType = source.readInt();
this.cuePointType = source.readInt();
this.dspType = source.readInt();
this.hasProgressTracking = source.readInt();
this.commonType = source.readInt();
this.mediaFileUrl = source.readString();
this.mediaFileType = source.readInt();
this.duration = source.readInt();
this.clickShowType = source.readInt();
this.text = source.readString();
this.textEx = source.readString();
this.isRequestOffline = source.readInt();
this.vid = source.readString();
this.pid = source.readString();
this.sid = source.readString();
this.streamURL = source.readString();
this.index = source.readInt();
if (source.readInt() != 1) {
z = false;
}
this.hadExposed = z;
this.adAliList = source.readArrayList(AdAli.class.getClassLoader());
}
示例6: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
SavedState(Parcel in) {
boolean z;
boolean z2 = true;
this.mAnchorPosition = in.readInt();
this.mVisibleAnchorPosition = in.readInt();
this.mSpanOffsetsSize = in.readInt();
if (this.mSpanOffsetsSize > 0) {
this.mSpanOffsets = new int[this.mSpanOffsetsSize];
in.readIntArray(this.mSpanOffsets);
}
this.mSpanLookupSize = in.readInt();
if (this.mSpanLookupSize > 0) {
this.mSpanLookup = new int[this.mSpanLookupSize];
in.readIntArray(this.mSpanLookup);
}
this.mReverseLayout = in.readInt() == 1;
if (in.readInt() == 1) {
z = true;
} else {
z = false;
}
this.mAnchorLayoutFromEnd = z;
if (in.readInt() != 1) {
z2 = false;
}
this.mLastLayoutRTL = z2;
this.mFullSpanItems = in.readArrayList(FullSpanItem.class.getClassLoader());
}
示例7: Comment
import android.os.Parcel; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public Comment(Parcel source) {
id = source.readInt();
portrait = source.readString();
author = source.readString();
authorId = source.readInt();
pubDate = source.readString();
appClient = source.readInt();
content = source.readString();
replies = source.readArrayList(Reply.class.getClassLoader());
refers = source.readArrayList(Refer.class.getClassLoader());
}
示例8: readFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
public void readFromParcel(Parcel in) {
this.SCREEN_MODE = in.readInt();
this.COLOR_BACK = in.readInt();
this.COLOR_MAIN = in.readInt();
this.COLOR_HIGHLIGHT = in.readInt();
this.COLOR_TITLE = in.readInt();
this.COLOR_CONTENT = in.readInt();
this.BACK_THEME = in.readByte();
this.FONT_THEME = in.readByte();
this.ITEM_THEME = in.readByte();
this.ITEMS_TITLE = in.readArrayList(String.class.getClassLoader());
this.ITEMS_SUBTITLE = in.readArrayList(String.class.getClassLoader());
this.ITEMS_CONTENT = in.readArrayList(String.class.getClassLoader());
this.listTitle_top = in.readString();
this.listTitle_bottom = in.readString();
this.TOP_BUTTON_ICON = in.readByte();
this.RIGHT_BUTTON_ICON = in.readByte();
this.BOTTOM_BUTTON_ICON = in.readByte();
this.LEFT_BUTTON_ICON = in.readByte();
this.TOP_BUTTON_ICON_ENDSTATE = in.readByte();
this.BOTTOM_BUTTON_ICON_ENDSTATE = in.readByte();
this.TOP_BUTTON_STYLE_ENDSTATE = in.readByte();
this.LEFT_BUTTON_STYLE = in.readByte();
this.BOTTOM_BUTTON_STYLE_ENDSTATE = in.readByte();
this.LEFT_BUTTON_STYLE = in.readByte();
}
示例9: DayScheduleContainer
import android.os.Parcel; //导入方法依赖的package包/类
private DayScheduleContainer(Parcel in) {
code = in.readString();
this.classes = in.readArrayList(new ArrayList<Class>().getClass().getClassLoader());
}
示例10: readFromParcel
import android.os.Parcel; //导入方法依赖的package包/类
@Override protected void readFromParcel(Parcel source) {
loadedData = (D) source.readArrayList(getClassLoader());
super.readFromParcel(source);
}