Skip to content

Recommendations for the View States

Vitaly Vivchar edited this page Nov 5, 2017 · 3 revisions

It is in BETA now.

The View States are ideal for saving a position of an nested RecyclerView. This ability includes by default when you use the CompositeViewRenderer. You can override the the default implementation of the CompositeViewRenderer if needed.

The default implementation of the ViewRenderer is null, because here is no anything to save when scroll.

I created an example where I use the ViewState for saving a check value. But I am not sure that is a good idea when you use it in dynamic list. But It's fine for static list.