idanatz / OneAdapter

A Viewholderless Adapter for RecyclerView, who supports builtin diffing, states (paging, empty...), events (clicking, swiping...), and more.
MIT License
469 stars 45 forks source link

nested recyclerview #2

Closed rakaadinugroho closed 5 years ago

rakaadinugroho commented 5 years ago

how to create nested recyclerview to handling layoutManager orientation?

idanatz commented 5 years ago

same as you will create a nested recycle view with a regular adapter. one of you ItemModule will hold a recycler view in its layout file and when the onBind gets called just populate that recycler view with different adapter and data.

for nested recycler view with regular adapter check this: https://android.jlelse.eu/easily-adding-nested-recycler-view-in-android-a7e9f7f04047