How to put db data in more than one Fragment?

Asked

Viewed 78 times

0

I want to put the database data in Fragments, in a Swipe, not a list, where each record is loaded into a different Fragment.

  • So. Each Fragment would display a person registered in the bank, and in this same Ragment would have a small form to answer it. I got an example in a book that presents the list Ragments, but I would need it to be a Swipe. It became clearer?

1 answer

1

The ideal would be to better understand your ultimate goal, but you could achieve this effect by creating a Recyclerview with a Linear horizontal layout. Just making a query to the bank and feeding Recyclerview with the cursor. Recyclerview is very effective and economical.

Another possibility would be to use Swipe Views

As I said, it depends a lot on your goal. I think you could study some of these options.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.