当前位置: 首页>>代码示例>>Java>>正文


Java Parcel.readArrayList方法代码示例

本文整理汇总了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());
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:22,代码来源:StaggeredGridLayoutManager.java

示例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();
}
 
开发者ID:m2049r,项目名称:xmrwallet,代码行数:16,代码来源:TransactionInfo.java

示例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;
}
 
开发者ID:NeoSmartpen,项目名称:AndroidSDK2.0,代码行数:16,代码来源:Stroke.java

示例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());
}
 
开发者ID:linklux,项目名称:android-schedules,代码行数:10,代码来源:DaySchedulesContainer.java

示例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());
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:32,代码来源:AdElementMime.java

示例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());
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:29,代码来源:StaggeredGridLayoutManager.java

示例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());
}
 
开发者ID:hsj-xiaokang,项目名称:OSchina_resources_android,代码行数:14,代码来源:Comment.java

示例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();
}
 
开发者ID:ordsen,项目名称:Snach-Android,代码行数:32,代码来源:ListAppContentItem.java

示例9: DayScheduleContainer

import android.os.Parcel; //导入方法依赖的package包/类
private DayScheduleContainer(Parcel in) {
    code = in.readString();

    this.classes = in.readArrayList(new ArrayList<Class>().getClass().getClassLoader());
}
 
开发者ID:linklux,项目名称:android-schedules,代码行数:6,代码来源:DayScheduleContainer.java

示例10: readFromParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override protected void readFromParcel(Parcel source) {

    loadedData = (D) source.readArrayList(getClassLoader());

    super.readFromParcel(source);
  }
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:7,代码来源:ArrayListLceViewState.java


注:本文中的android.os.Parcel.readArrayList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。