Year 2020: Migrating from Activity to ViewModel

Picture by Chris Briggs on Unsplash

For a span of 10 years, 2007 till 2017, Android development revolved around Activity/Fragment as the heart of its development for each screen. Some developers tried to shift the logic out using MVP, MVVM etc, but Google had yet to endorse anything back then.

In 2017, Architecture Component was introduced by Google. Android now has its own specialized ViewModel. However, it was…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store