當前位置: 首頁>>代碼示例>>Java>>正文


Java Parcel.readParcelable方法代碼示例

本文整理匯總了Java中android.os.Parcel.readParcelable方法的典型用法代碼示例。如果您正苦於以下問題:Java Parcel.readParcelable方法的具體用法?Java Parcel.readParcelable怎麽用?Java Parcel.readParcelable使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.os.Parcel的用法示例。


在下文中一共展示了Parcel.readParcelable方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: GitCommitModel

import android.os.Parcel; //導入方法依賴的package包/類
protected GitCommitModel(Parcel in) {
    this.sha = in.readString();
    this.url = in.readString();
    this.message = in.readString();
    this.author = in.readParcelable(User.class.getClassLoader());
    this.committer = in.readParcelable(User.class.getClassLoader());
    this.tree = in.readParcelable(User.class.getClassLoader());
    this.distincted = in.readByte() != 0;

    this.parents = new RealmList<>();
    ArrayList<GitCommitModel> list = in.createTypedArrayList(GitCommitModel.CREATOR);
    if (list != null && list.size() > 0) {
        parents.addAll(list);
    }

    this.commentCount = in.readInt();
}
 
開發者ID:duyp,項目名稱:mvvm-template,代碼行數:18,代碼來源:GitCommitModel.java

示例2: EntryState

import android.os.Parcel; //導入方法依賴的package包/類
public EntryState(Parcel in)
{
    super();
    formulaId = in.readInt();
    type = FormulaBase.BaseType.values()[in.readInt()];
    data = in.readParcelable(getClass().getClassLoader());
}
 
開發者ID:mkulesh,項目名稱:microMathematics,代碼行數:8,代碼來源:ReplaceState.java

示例3: CardBean

import android.os.Parcel; //導入方法依賴的package包/類
protected CardBean(Parcel in) {
    this.DisplayRank = in.readString();
    this.approve = in.readByte() != 0;
    this.article = in.readInt();
    this.attention = in.readInt();
    this.birthday = in.readString();
    this.description = in.readString();
    this.face = in.readString();
    this.fans = in.readInt();
    this.friend = in.readInt();
    this.level_info = in.readParcelable(LevelInfoBean.class.getClassLoader());
    this.mid = in.readString();
    this.name = in.readString();
    this.nameplate = in.readParcelable(NameplateBean.class.getClassLoader());
    this.official_verify = in.readParcelable(OfficialVerifyBean.class.getClassLoader());
    this.pendant = in.readParcelable(PendantBean.class.getClassLoader());
    this.place = in.readString();
    this.rank = in.readString();
    this.regtime = in.readInt();
    this.sex = in.readString();
    this.sign = in.readString();
    this.spacesta = in.readInt();
    this.vip = in.readParcelable(VipBean.class.getClassLoader());
    this.attentions = new ArrayList<Integer>();
    in.readList(this.attentions, Integer.class.getClassLoader());
}
 
開發者ID:TongmingWu,項目名稱:BLPlayer,代碼行數:27,代碼來源:VideoDetailData.java

示例4: SavedStateScrolling

import android.os.Parcel; //導入方法依賴的package包/類
/**
 * Called by CREATOR.
 *
 * @param in na
 */
public SavedStateScrolling(Parcel in) {
    // Parcel 'in' has its parent(RecyclerView)'s saved state.
    // To restore it, class loader that loaded RecyclerView is required.
    Parcelable superState = in.readParcelable(RecyclerView.class.getClassLoader());
    this.superState = superState != null ? superState : EMPTY_STATE;

    prevFirstVisiblePosition = in.readInt();
    prevFirstVisibleChildHeight = in.readInt();
    prevScrolledChildrenHeight = in.readInt();
    prevScrollY = in.readInt();
    scrollY = in.readInt();
    childrenHeights = new SparseIntArray();
    final int numOfChildren = in.readInt();
    if (0 < numOfChildren) {
        for (int i = 0; i < numOfChildren; i++) {
            final int key = in.readInt();
            final int value = in.readInt();
            childrenHeights.put(key, value);
        }
    }
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:27,代碼來源:SavedStateScrolling.java

示例5: UserLiveRoomStatusInfo

import android.os.Parcel; //導入方法依賴的package包/類
protected UserLiveRoomStatusInfo(Parcel in)
{

    this.code = in.readInt();
    this.message = in.readString();
    this.data = in.readParcelable(DataBean.class.getClassLoader());
}
 
開發者ID:WeDevelopTeam,項目名稱:HeroVideo-master,代碼行數:8,代碼來源:UserLiveRoomStatusInfo.java

示例6: VLocConfig

import android.os.Parcel; //導入方法依賴的package包/類
VLocConfig(Parcel in) {
    this.mode = in.readInt();
    this.cell = in.readParcelable(VCell.class.getClassLoader());
    this.allCell = in.createTypedArrayList(VCell.CREATOR);
    this.neighboringCell = in.createTypedArrayList(VCell.CREATOR);
    this.location = in.readParcelable(VLocation.class.getClassLoader());
}
 
開發者ID:coding-dream,項目名稱:TPlayer,代碼行數:8,代碼來源:VirtualLocationService.java

示例7: Expense

import android.os.Parcel; //導入方法依賴的package包/類
private Expense(Parcel in) {
    this.id = (Long) in.readValue(Long.class.getClassLoader());
    this.vehicle = in.readParcelable(Vehicle.class.getClassLoader());
    this.price = (BigDecimal) in.readSerializable();
    long tmpDate = in.readLong();
    this.date = tmpDate == -1 ? null : new Date(tmpDate);
    this.info = in.readString();
}
 
開發者ID:piskula,項目名稱:FuelUp,代碼行數:9,代碼來源:Expense.java

示例8: SimpleShareContent

import android.os.Parcel; //導入方法依賴的package包/類
protected SimpleShareContent(Parcel parcel) {
    if (parcel != null) {
        this.mShareContent = parcel.readString();
        this.mShareMedia = (UMediaObject) parcel.readParcelable(UMediaObject.class
                .getClassLoader());
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:SimpleShareContent.java

示例9: PermissionComponent

import android.os.Parcel; //導入方法依賴的package包/類
protected PermissionComponent(Parcel src) {
    info = src.readParcelable(ActivityInfo.class.getClassLoader());
    className = src.readString();
    metaData = src.readBundle(Bundle.class.getClassLoader());
    int N = src.readInt();
    intents = new ArrayList<>(N);
    while (N-- > 0) {
        intents.add(new IntentInfo(src));
    }
}
 
開發者ID:coding-dream,項目名稱:TPlayer,代碼行數:11,代碼來源:VPackage.java

示例10: RouterRequest

import android.os.Parcel; //導入方法依賴的package包/類
protected RouterRequest(Parcel in) {
    uri = in.readParcelable(Uri.class.getClassLoader());
    bundle = in.readBundle();
    requestCode = in.readInt();
    optionsCompat = in.readBundle();
    isIntercepted = in.readByte() != 0;
}
 
開發者ID:qkcoder,項目名稱:Assembler,代碼行數:8,代碼來源:RouterRequest.java

示例11: ListBean

import android.os.Parcel; //導入方法依賴的package包/類
protected ListBean(Parcel in) {

        this.aid = in.readInt();
        this.pic = in.readString();
        this.title = in.readString();
        this.stat = in.readParcelable(StatBean.class.getClassLoader());
      }
 
開發者ID:MUFCRyan,項目名稱:BilibiliClient,代碼行數:8,代碼來源:UserCoinsInfo.java

示例12: WidgetTextBean

import android.os.Parcel; //導入方法依賴的package包/類
protected WidgetTextBean(Parcel in) {
    mTextSize = in.readInt();
    mTypeface = in.readString();
    mTextColor = new int[in.readInt()];
    in.readIntArray(mTextColor);
    mTextRect = in.readParcelable(Rect.class.getClassLoader());
    mTextGravity = in.readInt();
    mBackgroundRes = in.readInt();
    mImageRes = in.readInt();
    mImageX = in.readInt();
    mImageY = in.readInt();
    mImageGravity = in.readInt();
    mDefaultWidth = in.readInt();
    mDefaultHeight = in.readInt();
    mText = in.readString();
    mMinTextSize = in.readInt();
    mTextRotateAngle = in.readInt();
    mStrokeWidth = in.readFloat();
    mStrokeColor = new int[in.readInt()];
    in.readIntArray(mStrokeColor);
    mLetterSpace = in.readFloat();
    mTextStartXOffset = in.readFloat();
    mTextStartYOffset = in.readFloat();
    mImageWidth = in.readInt();
    mImageHeight = in.readInt();
    mTextColorGradient = in.readInt();
    mShadowRadius = in.readFloat();
    mShadowDisX = in.readFloat();
    mShadowDisY = in.readFloat();
    mShadowColor = in.readInt();
    mLineSpace = in.readFloat();
    mTextStrokeGradient = in.readInt();
}
 
開發者ID:MaYatKit,項目名稱:Rotatable-Scalable-Font,代碼行數:34,代碼來源:WidgetTextBean.java

示例13: SavedState

import android.os.Parcel; //導入方法依賴的package包/類
SavedState(Parcel in, ClassLoader loader) {
    super(in, loader);
    if (loader == null) {
        loader = getClass().getClassLoader();
    }
    position = in.readInt();
    adapterState = in.readParcelable(loader);
    this.loader = loader;
}
 
開發者ID:SimonCherryGZ,項目名稱:JewelryUI,代碼行數:10,代碼來源:ViewPager.java

示例14: VPackage

import android.os.Parcel; //導入方法依賴的package包/類
protected VPackage(Parcel in) {
    int N = in.readInt();
    this.activities = new ArrayList<>(N);
    while (N-- > 0) {
        activities.add(new ActivityComponent(in));
    }
    N = in.readInt();
    this.receivers = new ArrayList<>(N);
    while (N-- > 0) {
        receivers.add(new ActivityComponent(in));
    }
    N = in.readInt();
    this.providers = new ArrayList<>(N);
    while (N-- > 0) {
        providers.add(new ProviderComponent(in));
    }
    N = in.readInt();
    this.services = new ArrayList<>(N);
    while (N-- > 0) {
        services.add(new ServiceComponent(in));
    }
    N = in.readInt();
    this.instrumentation = new ArrayList<>(N);
    while (N-- > 0) {
        instrumentation.add(new InstrumentationComponent(in));
    }
    N = in.readInt();
    this.permissions = new ArrayList<>(N);
    while (N-- > 0) {
        permissions.add(new PermissionComponent(in));
    }
    N = in.readInt();
    this.permissionGroups = new ArrayList<>(N);
    while (N-- > 0) {
        permissionGroups.add(new PermissionGroupComponent(in));
    }
    this.requestedPermissions = in.createStringArrayList();
    this.protectedBroadcasts = in.createStringArrayList();
    this.applicationInfo = in.readParcelable(ApplicationInfo.class.getClassLoader());
    this.mAppMetaData = in.readBundle(Bundle.class.getClassLoader());
    this.packageName = in.readString();
    this.mPreferredOrder = in.readInt();
    this.mVersionName = in.readString();
    this.mSharedUserId = in.readString();
    this.usesLibraries = in.createStringArrayList();
    this.mVersionCode = in.readInt();
    this.mSharedUserLabel = in.readInt();
    this.configPreferences = in.createTypedArrayList(ConfigurationInfo.CREATOR);
    this.reqFeatures = in.createTypedArrayList(FeatureInfo.CREATOR);
}
 
開發者ID:coding-dream,項目名稱:TPlayer,代碼行數:51,代碼來源:VPackage.java

示例15: UserChaseBangumiInfo

import android.os.Parcel; //導入方法依賴的package包/類
protected UserChaseBangumiInfo(Parcel in) {

    this.status = in.readByte() != 0;
    this.data = in.readParcelable(DataBean.class.getClassLoader());
  }
 
開發者ID:MUFCRyan,項目名稱:BilibiliClient,代碼行數:6,代碼來源:UserChaseBangumiInfo.java


注:本文中的android.os.Parcel.readParcelable方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。