From the course: Android App Development: Design Patterns for Mobile Architecture

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create presenter, part 4

Create presenter, part 4 - Android Tutorial

From the course: Android App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

Create presenter, part 4

- [Instructor] The last view to look at in moving to a presenter is the view holder or the view adaptor. Right now, on line 31, you can see that we are passing in a spy. I felt that this was simple enough that this did not warrant creating a presenter for it. There's a spectrum that you and your team will need to decide on when to implement a presenter versus when you can just pass in entities or something like that. In this case, there's no additional logic, and, really, we're just passing in the spy that we already had. Either way is acceptable. It really just depends on how far along the spectrum of architecture you want to be and how strict you want to be with the different principles.

Contents