Tag: MVVM
-
Creating android app using MVVM + Coroutines + Flow + Hilt
In this tutorial, I will explain the MVVM architecture with kotlin coroutines and kotlin flow with hilt dependency injection. Also, I will explain the Room database with the flow in this tutorial. let’s begin with a short introduction about the features I will use in this tutorial. What is MVVM? MVVM (Model-View-ViewModel) pattern helps to […]
-
MVVM Unit testing on Android
In this tutorial, I am explaining about writing test cases for MVVM on android. Unit testing is testing every unit of your code. Unit testing is a must to build robust android applications. It is an important element while building quality applications. Unit tests are the smallest (individually) and with the least execution time. Benefits […]
-
Jetpack compose – Retrofit with Recyclerview
In this post, I am going to explain about using the retrofit and recyclerview in jetpack compose with MVVM pattern. Everybody knows that the Jetpack Compose is a modern toolkit designed to simplify UI development. Before jumping into this example on retrofit and recyclerview. I have created posts on jetpack compose components, layouts, modifiers, and […]
-
MVVM with Kotlin Coroutines and Retrofit [Example]
Coroutines are a neat new feature of the Kotlin language that allows us to write asynchronous code in a more idiomatic way. — This also means you can write asynchronous code the same way you would normally write synchronous code in your project. Already, I have explained MVVM in detail in another post. Please check that […]
-
MVVM With Retrofit and Recyclerview in Kotlin [Example]
MVVM architecture is a Model-View-ViewModel architecture that removes the tight coupling between each component. Most importantly, in this architecture, the children don’t have a direct reference to the parent, they only have the reference by observables. What is MVVM? MVVM stands for Model, View, ViewModel. Model: This holds the data of the application. It cannot directly talk to […]