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

后端 未结 12 1261
佛祖请我去吃肉
佛祖请我去吃肉 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:20

    I suggested you the easiest way to implement Parcelable if you are using Android Studio.

    Simply go to File->Settings->Plugins->Browse Repository and search for parcelable .See image

    It will automatically create Parcelable.

    And there is a webiste also for doing this. http://www.parcelabler.com/

提交回复
热议问题