How to read/write a boolean when implementing the Parcelable interface?

后端 未结 12 1259
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 14:33

I\'m trying to make an ArrayList Parcelable in order to pass to an activity a list of custom object. I start writing a myObjectList cl

12条回答
  •  再見小時候
    2020-11-29 15:06

    You could pack your boolean values into a byte using masking and shifting. That would be the most efficient way to do it and is probably what they would expect you to do.

提交回复
热议问题