Home > database >  Android studio displaying data from sqlite local db
Android studio displaying data from sqlite local db

Time:12-10

I cant seem to find any solutions to this problem on the internet. basically im working on an app that lets the user create workouts and view them and I'm struggling with the view part.

My database is all set up with user input using the fields exercise, sets and reps, the user creates a workout and the contents of the table used to build it are copied to a new one and the table is cleared to take in new input.

I want to create a recycler view using the table names, pass the selected item name to the next fragment and use the users selection to determine what data will be shown in the next recycler view.

Is this possible and if so please show me how, I'm supposed to have this app ready in a couple of days for an assignment

any help would be appreciated, thanks - Ian

CodePudding user response:

To clairfy, you would like to make list of the list? Use one to many relationship or map using room. I have done such implementation days ago feel free to ask.

enter image description here

When an Item (e.g. A10 (whos' id is 11)) is Long clicked :-

enter image description here

Clicking DONE returns to the first activity.

  • Related