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
class which extends ArrayList<myObject>
and implement Parcelable
.
Some attributes of MyObject
are boolean
but Parcel
don't have any method read/writeBoolean
.
What is the best way to handle this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…