本文整理汇总了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;
}
示例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());
}
示例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());
}