Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Expert Android Programming

You're reading from   Expert Android Programming Master skills to build enterprise grade Android applications

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781786468956
Length 404 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Prajyot Mainkar Prajyot Mainkar
Author Profile Icon Prajyot Mainkar
Prajyot Mainkar
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Understanding the Gradle System FREE CHAPTER 2. Exploring Android Studio Developer Tools 3. Leap into the Android Support Library 4. Google Play Services 5. Material Design 6. SOLID Android Development and Its Design Principles 7. Understanding MVC, MVP, MVVM and Clean Arch Patterns 8. Decision Making 9. Performance Matters 10. Building Restaurant finder 11. Backend Service 12. App Quality Service 13. Grow Up 14. Testing 15. Preparing for Google Play 16. Understanding App Store Analytics for Optimization

MVVM

MVVM stands for Model-View-View-Model. It is similar to the MVC model, the only difference being it has two-way data binding with the view and view-model. The changes in the view are being propagated via the view-model, which uses an observer pattern to communicate between the view-model and the model. The view in this case is completely isolated from the model.

The major advantage of using MVVM is it enables automatic changes in the view via the view-model:

Figure 2.2.3

MVVM has the following components:

  • Model: The model represents the objects in the application. This has the logic of where the data is to be fetched from.
  • View: The view is similar to the MVC pattern view, which renders information to users and contains a UI Component .xml file, activity, fragments, and dialog under the View Layer. It does not have any other logic implemented.
  • View-model: The view-model...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime