本文整理汇总了Java中android.os.Parcel.readSparseArray方法的典型用法代码示例。如果您正苦于以下问题:Java Parcel.readSparseArray方法的具体用法?Java Parcel.readSparseArray怎么用?Java Parcel.readSparseArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.os.Parcel
的用法示例。
在下文中一共展示了Parcel.readSparseArray方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ParcelableContainer
import android.os.Parcel; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private ParcelableContainer(Parcel parcel) {
anchorViewState = AnchorViewState.CREATOR.createFromParcel(parcel);
orientationCacheMap = parcel.readSparseArray(CacheParcelableContainer.class.getClassLoader());
cacheNormalizationPositionMap = parcel.readSparseArray(Integer.class.getClassLoader());
orientation = parcel.readInt();
}
示例2: PackageSetting
import android.os.Parcel; //导入方法依赖的package包/类
protected PackageSetting(Parcel in) {
this.packageName = in.readString();
this.apkPath = in.readString();
this.libPath = in.readString();
this.dependSystem = in.readByte() != 0;
this.appId = in.readInt();
//noinspection unchecked
this.userState = in.readSparseArray(PackageUserState.class.getClassLoader());
this.artFlyMode = in.readByte() != 0;
}
示例3: ParcelledState
import android.os.Parcel; //导入方法依赖的package包/类
protected ParcelledState(Parcel in) {
parcelableKey = in.readParcelable(getClass().getClassLoader());
// noinspection unchecked
viewHierarchyState = in.readSparseArray(getClass().getClassLoader());
boolean hasBundle = in.readByte() > 0;
if(hasBundle) {
bundle = in.readParcelable(getClass().getClassLoader());
}
}
示例4: PackageSetting
import android.os.Parcel; //导入方法依赖的package包/类
protected PackageSetting(Parcel in) {
this.packageName = in.readString();
this.apkPath = in.readString();
this.libPath = in.readString();
this.dependSystem = in.readByte() != 0;
this.appId = in.readInt();
//noinspection unchecked
this.userState = in.readSparseArray(PackageUserState.class.getClassLoader());
this.skipDexOpt = in.readByte() != 0;
}
示例5: SavedState
import android.os.Parcel; //导入方法依赖的package包/类
private SavedState(Parcel in, ClassLoader classLoader) {
super(in);
childrenStates = in.readSparseArray(classLoader);
mCurrentSearchViewState = SearchViewState.fromInt(in.readInt());
}