Passing object array list between fragments in Android development

前端 未结 4 1553
梦如初夏
梦如初夏 2021-01-14 09:58

I am trying to pass arraylist between fragments in Android development. This is the part where I tried to pass Transaction array list to another fragment:

sw         


        
4条回答
  •  旧巷少年郎
    2021-01-14 10:23

    Instead of implementing Serializable, you should make your Transaction class implement Parcelable. Parcelable is the fastest serialization mechanism you can use on Android, it's faster than Serializable or JSON transformation and uses less memory.

提交回复
热议问题