本文整理汇总了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();
}
示例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());
}
示例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());
}
示例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);
}
}
}
示例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());
}
示例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());
}
示例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();
}
示例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());
}
}
示例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));
}
}
示例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;
}
示例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());
}
示例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();
}
示例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;
}
示例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);
}
示例15: UserChaseBangumiInfo
import android.os.Parcel; //导入方法依赖的package包/类
protected UserChaseBangumiInfo(Parcel in) {
this.status = in.readByte() != 0;
this.data = in.readParcelable(DataBean.class.getClassLoader());
}