本文整理匯總了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());
}