ViewModel in Android
Can we have a viewModel in android in a project having more than 200 lines of code or viewModel should have minimum number of lines of code? I am developing a camera app, in which, user have to take photos, record videos and play recorded videos. Should I create one main viewModel or three viewModels […]
Need to share data from Main Activity with Fragments managed by NavController
I have a very simple main activity with some state that I need to share with fragments being managed by a DrawerLayout and NavigationView hosted in the main activity layout