Android ArrayList pass as parcelable

后端 未结 3 1106
长发绾君心
长发绾君心 2020-12-03 07:08

Code now modified to reflect the accepted solution.

This now serves as a working example of how to pass a custom ArrayList into a DialogFrag

3条回答
  •  借酒劲吻你
    2020-12-03 07:47

    Yes, make Locality class itself Parcelable, and don't forgot to initialize

    ArrayList mList= new ArrayList();
    

提交回复
热议问题