當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。