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


Java Parcel.readMap方法代码示例

本文整理汇总了Java中android.os.Parcel.readMap方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readMap方法的具体用法?Java Parcel.readMap怎么用?Java Parcel.readMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.readMap方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createFromParcel

import android.os.Parcel; //导入方法依赖的package包/类
@Override
public State createFromParcel(Parcel in) {
    final State state = new State();
    state.action = in.readInt();
    state.userMode = in.readInt();
    state.acceptMimes = new String[in.readInt()];
    in.readStringArray(state.acceptMimes);
    state.userSortOrder = in.readInt();
    state.allowMultiple = in.readInt() != 0;
    state.showSize = in.readInt() != 0;
    state.showFolderSize = in.readInt() != 0;
    state.showThumbnail = in.readInt() != 0;
    state.showHiddenFiles = in.readInt() != 0;
    state.localOnly = in.readInt() != 0;
    state.forceAdvanced = in.readInt() != 0;
    state.showAdvanced = in.readInt() != 0;
    state.rootMode = in.readInt() != 0;
    state.stackTouched = in.readInt() != 0;
    state.restored = in.readInt() != 0;
    DurableUtils.readFromParcel(in, state.stack);
    state.currentSearch = in.readString();
    in.readMap(state.dirState, null);
    return state;
}
 
开发者ID:kranthi0987,项目名称:easyfilemanager,代码行数:25,代码来源:BaseActivity.java

示例2: Team

import android.os.Parcel; //导入方法依赖的package包/类
protected Team(Parcel in) {
    teamName = in.readString();
    teamID = in.readString();
    teamMembers = new HashMap<String, User>();
    in.readMap(teamMembers,User.class.getClassLoader());
    latitude = in.readFloat();
    longitude = in.readFloat();
    status = in.readString();
    travelTime = in.readInt();
    travelTimeReadable = in.readString();
    tokens = new HashMap<String, String>();
    in.readMap(tokens,String.class.getClassLoader());
}
 
开发者ID:panzerama,项目名称:Dispatch,代码行数:14,代码来源:Team.java

示例3: readFromParcel

import android.os.Parcel; //导入方法依赖的package包/类
private void readFromParcel(Parcel in) {
    mId = in.readLong();
    mTitle = in.readString();
    mRating = in.readFloat();
    mPlot = in.readString();
    in.readMap(mActors, LinkedHashMap.class.getClassLoader());
    in.readStringList(mDirectors);
    mFile = Uri.parse(in.readString());
}
 
开发者ID:archos-sa,项目名称:aos-MediaLib,代码行数:10,代码来源:BaseTags.java


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