Home

Android ViewModel

ViewModel A ViewModel holds your app’s UI data while surviving configuration changes. Here’s why that’s actually useful. Rotating your phone is considered a configuration change. Configuration changes cause your whole activity to get torn down and then recreated. If you don’t properly save and restore data from the destroyed activity, you may ...

Read more

Android Data Binding

Summary You used the findViewById() function to get references to views. When your app has complex view hierarchies, findViewById() is expensive and slows down the app, because Android traverses the view hierarchy, starting at the root, until it finds the desired view. In this Example, you learn how to use data binding to eliminate the need for...

Read more

Android-Architecture-Component

A sample project to demonstrate Android Architecture Component libraries (Room, ViewModel, LiveData and LifeCycle) It is a Note taking app, built using the Android Architecture Component libraries (Room, ViewModel, LiveData and LifeCycle), App data will be stored in an SQLite database and supports for insert, read, update and delete operations....

Read more

Difference-between-MVC-MVP-and-MVVM

We got have one to one relationship between view and presenter, View and presenter work closely together, they need to have a reference to one another. Relationship between presenter and corresponding view is defined in a contract interface class. It present tight coupling between view and presenter . In case of this, presenter suppose to have...

Read more

SOLID Principles and Design Patterns.

SOLID Principles and Design Patterns plays a key role in achieving all of the below points. SOLID Introduction SOLID principles are the design principles that enable us to manage most of the software design problems The term SOLID is an acronym for five design principles intended to make software designs more understandable, flexible and m...

Read more