当前位置: 首页>>代码示例>>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;未经允许,请勿转载。