create Parcelable Badge States
open fun createParcelableBadgeStates(@NonNull badgeDrawables: SparseArray<BadgeDrawable>): ParcelableSparseArray
Given a map of int keys to BadgeDrawable BadgeDrawables
, creates a parcelable map of unique int keys to BadgeDrawable.SavedState SavedStates
. Useful for state restoration.
Return
A parcelable SparseArray that contains a map of int keys (e.g. menuItemId) to BadgeDrawable.SavedState SavedStates
.
Parameters
badge Drawables
A SparseArray that contains a map of int keys (e.g. menuItemId) to BadgeDrawable BadgeDrawables
.