jayeshsolanki93
05/18/2020, 4:59 PMjayeshsolanki93
05/18/2020, 4:59 PMCollin Flynn
05/18/2020, 7:17 PMOrhan Tozan
05/19/2020, 12:49 PMOrhan Tozan
05/19/2020, 12:49 PMahulyk
05/19/2020, 1:05 PMSaurabh
05/19/2020, 1:19 PMViewModel
in my opinion does not have a view reference in it for a reason, that it is not bound by a view. I have an issue with how most applications I see have one ViewModel
for each View
in the architecture. That just makes it a presenter without a view reference.
In my opinion, a ViewModel
should be reusable, by any view that wants to show the data that a particular ViewModel
exposes.Saurabh
05/19/2020, 1:20 PMHomeActivity
with HomeActivityViewModel
. We hinder that reusability part of it.
The part of the issue is how even android studio suggest you to create Fragment + ViewModel
through it's wizard.Orhan Tozan
05/19/2020, 1:21 PMSaurabh
05/19/2020, 1:24 PMOrhan Tozan
05/19/2020, 1:27 PMSaurabh
05/19/2020, 1:42 PMdewildte
05/19/2020, 7:45 PMFlow
is good for this.dewildte
05/19/2020, 7:46 PMdewildte
05/19/2020, 7:47 PMdewildte
05/19/2020, 7:48 PMAnastasia Finogenova
05/21/2020, 3:46 AMursus
05/21/2020, 2:55 PMursus
05/21/2020, 2:55 PMAndrew
05/21/2020, 8:40 PMOG
05/21/2020, 10:19 PMAnastasia Finogenova
05/21/2020, 10:21 PMOG
05/21/2020, 10:27 PMAnastasia Finogenova
05/21/2020, 10:30 PMAnastasia Finogenova
05/21/2020, 10:31 PMOG
05/21/2020, 10:40 PMOG
05/21/2020, 10:41 PMOG
05/21/2020, 10:44 PMAnastasia Finogenova
05/21/2020, 10:46 PMOG
05/21/2020, 10:46 PMAnastasia Finogenova
05/21/2020, 10:47 PMOG
05/21/2020, 10:49 PM