This is what I want to do
- There are two fragments(fragment 1 and fragment 2).
- First Fragment consist of a recycler view with card layouts.The information from each card layout is loaded from a external MySql database.
- Each card layout contains a bookmark icon or image.On clicking on this image that particular card will be copied to Fragment 2 and saved in fragment 2.Thus cards of fragment 2 will be different for different user and needs to be saved on local database or storage.
I was thinking of using a sqlite database for storing the information of bookmarked cards for each user.Note that the contents of this bookmarked cards is still being loaded from Mysql database.Thus later when the user starts the app again the card will be loaded from its sqlite database and its contents will be loaded from MySql database.Will this be the right approach?
Also I have no idea about how I will copy the card from one fragment to another.
Aucun commentaire:
Enregistrer un commentaire