Gabriel Feo
07/20/2020, 5:09 PM@Parcelize
equivalent for saving custom view state?Casey Brooks
07/20/2020, 5:57 PM@Parcelize
is placed on Parcelable
classes, which can directly be returned from onSaveInstanceState()
, or placed in a Bundle. Normally this is done in an Activity, though I think it can be done with Views as well (though it looks like there’s a bit of additional boilerplate to make it work https://developer.android.com/reference/android/view/View.BaseSavedState)Gabriel Feo
07/20/2020, 6:12 PM