Satya Pavan Kantamani
1 min readJan 30, 2020

--

Hi,

Thanks for your response. In most cases, we can’t share a single view model across all fragments so in that case if you want to communicate back to parent fragment this approach could be better useful. And it’s fragment level method which means if we fallow any architecture like MVP or MVC this could be useful. Finally, my view is it would be better to use the existing methods in the class rather than using ViewModel for everything.

--

--

Satya Pavan Kantamani
Satya Pavan Kantamani

Written by Satya Pavan Kantamani

Android Dev, Interested in Traveling, App development. Based in Hyderabad, India. Catch me at https://about.me/satyapavankumar

No responses yet