How do I decide how many ViewModels my app should have? Android, MVVM

后端 未结 0 1693
醉酒成梦
醉酒成梦 2021-02-19 06:14

I see the recommendation is 1 view-model per 1 view (activity, fragment, custom view), but in most examples I see projects only have 1 view-model even though these have multiple

相关标签:
回答
  • 消灭零回复
提交回复
热议问题