Saved News Fragment

Learn how to retrieve saved news from local database.

We'll cover the following

Saving favorite articles

This fragment will display a list of articles that the user has marked as favorites and intends to read later.

The “Favorites” button is a floating action bar that allows the user to save an article in the Room database by clicking it. The saved article(s) is then displayed in this fragment.

Let’s look at the code.

Get hands-on with 1200+ tech skills courses.