Bind Image with Glide in Adapter using Data Binding in 4 steps
In this blog, I will explain in detail about how …

Read more

Paging 3: Manage load states and how to add retry button
In this blog we focus on how to display loading spinner, empty state and how to add common retry error button in Paging 3. In previous blog I have explained How to display paginated list using Jetpack Paging 3 library with MVVM architecture, Hilt Dagger Dependency, Kotlin Flow, Coroutines and Live Data in kotlin.

Android Jetpack Paging 3 And Kotlin Flow with steps
Android Jetpack Paging 3 library provides pagination, where we can separate API calls logic, loading spinner, and retry error button. Paging library takes care of the calling API in advance with in-memory caching. Hence, our code looks more elegant, readable, and testable. The Paging library helps you load and display pages of data from a larger dataset from local storage or over network. This approach allows your app to use both network bandwidth and system resources more efficiently. The components of the Paging library are designed to fit into the recommended Android app architecture, integrate cleanly with other Jetpack components, and provide first-class Kotlin support.

RecyclerView with with MVVM architecture Hilt Dagger Coroutine Flow Retrofit StateFlow in Kotlin
When we think about creating a new project in a structured way with a kotlin language we think to use it with new Jetpack components. Architecture Components help you structure your app in a way that is robust, testable, and maintainable with less boilerplate code. So, lets create a new project and use all this components.