bufferapp / clean-architecture-components-boilerplate

A fork of our clean architecture boilerplate, this time using the Android Architecture Components
MIT License
1.28k stars 178 forks source link

How to implement onClick for RecyclerView? #18

Closed clj0020 closed 6 years ago

clj0020 commented 6 years ago

What part of the application would need to implement onClick for users to be able to click on an item in the RecyclerView and navigate to a fragment/activity for the single model? Would you put it in the presentation layer or the mobile ui layer?

hitherejoe commented 6 years ago

that would go in the UI layer, and then pass the click through the view model which would handle some form of request / action :)