Home > Software design >  how can i create a favorites button for my quotes app?
how can i create a favorites button for my quotes app?

Time:03-23

I have an android app which displays quotes, would like to add "Save Quote As favourite" based on users selection of particular quote.

Once user saves Fav quotes and wants to see those quotes only, app should show those quotes, in a section of the navbar.

the problem is that i called my quotes with an API and how can i introduce the favorite button to Quotes in a API? is that possible? or i shouldn't have used an API, and should have done by coding?

please can ssomeone help me?

CodePudding user response:

(If I have understood correctly) you should store the selected quotes in a local database, then you can show such saved quotes in a recyclerView/list/whatever.

I just finished a very similar project, see if it may help:

https://github.com/mariorobertofortunato/QuoteGenerator

  • Related