Android: should a listView Adapter be part of your ViewModel class? [closed]
Asked Answered
P

1

6

I am working on an Android Application and trying to follow MVVM design pattern. I have a listView and the question is whether the Adapter should be part of the ViewModel class? What is the best way to structure this with MVVM design pattern?

Pimple answered 17/9, 2015 at 20:6 Comment(0)
O
-1

I am new to Android development but from what I understand of the guidance I would suggest that the adapter should not know about the ViewModel. If the ViewModel knew about the adapter then it would know about the "tile" view.

Outpour answered 17/1, 2018 at 0:2 Comment(1)
This is a possible duplicate of: #3675451Rickierickman

© 2022 - 2024 — McMap. All rights reserved.