Hi guys, i just recently applied MVP. Now i wonder...
# android
j
Hi guys, i just recently applied MVP. Now i wonder how to properly create recyclerview using this architecture? Thanks!
google 5
k
hi Joey, what is issue in creating RV with mvp? Simply create a RV with default data array and when presenter loads the data then update RV with new data list
j
Im a bit lost where to put the adapter. @Kashif
k
its as simple as your regular work without mvp onCreate method init RV and bind adapter with it and when app gets data from Presenter then update the adapter
j
Thanks! @Kashif
k
👍
z
the RecyclerView Adapter Item defines an interface for the "event handler" that is passed in to the adapter so that the items can communicate to it. This is typically the Fragment. Then the Fragment communicates with the Presenter.
👍 1
j
Thanks @zhuinden