Retrofit 2 — Loading Data into RecyclerView and CardView

Retrofit is an excellent library to load data from an API or website. In a previous tutorial, you've learned how to load data from Wikipedia with jspoon. However, we didn't cover displaying that data. In this tutorial, you'll use a RecyclerView to display the section titles of a parsed Wikipedia article.

Google's RecyclerView has the intention of fixing the sluggish ListView. Furthermore, the Android design guidelines often suggest using cards. In this tutorial you'll first learn to create a RecyclerView and fill it with data from Retrofit. Afterwards, you'll switch the item design to use the CardView.

Retrofit Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.