livefront / bridge

An Android library for avoiding TransactionTooLargeException during state saving and restoration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to store/retrieve custom ArrayList object which we use for recyclerview ?

AbuzarJan opened this issue · comments

That all depends on what you are using as your SavedStateHandler. If you calling into something like https://github.com/evernote/android-state , then you'd do something like this:

@State 
var dataList: ArrayList<Data> = ArrayList()

where Data (or whatever your model would be) is required to be Parcelable.

@AbuzarJan I'm going to close this issue. Let me know if there are still questions about it. Take a look at the sample, too, if you are just having issues getting Bridge set up.