How to load and cache images from URL to RecyclerView without using 3rd party libraries in Android

What is the goal? In the last post, I demonstrated how to create a RecyclerView and load data from the external API, particularly we used the Picasso library to load and cache images for us. In this post, I will show how to manually do that without the use of any libraries. To not repeat myself, in this article I will just post the code for newly added classes and code where changes were made, the rest of the code is the same as previous post....

April 15, 2022 · 8 min · NSA

How to populate RecyclerView with data from server in Android

What is the goal? In this article, I will review how to create a custom RecyclerView, how to fetch the data from the external API using Retrofit, and display the result in the RecyclerView. This tutorial will mainly consist of 3 steps. In step #1 I will design an individual row layout, in step #2 will create a RecyclerView adapter, in step #3 fetch the data from the server and feed it to RecyclerView....

March 29, 2022 · 8 min · NSA