应该使用什么,因为该类已被弃用。ParcelableCompat已弃用,newCreator()已弃用, ParcelableComparCreatorCallbacks <>已弃用。谢谢!
public static final Parcelable.Creator<SavedState> CREATOR
= ParcelableCompat.newCreator(new ParcelableCompatCreatorCallbacks<SavedState>() {
@Override
public SavedState createFromParcel(Parcel in, ClassLoader loader) {
return new SavedState(in, loader);
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
});
慕婉清6462132
PIPIONE
相关分类