本文整理匯總了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());
}