I want to put the database data in fragments, in a swipe, not a list, where each record is loaded in a different fragment.
I want to put the database data in fragments, in a swipe, not a list, where each record is loaded in a different fragment.
Ideally, you'd better understand your ultimate goal, but you could achieve this by creating a RecyclerView with a Horizontal LinearLayout . By simply querying the database and feeding the 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 these options a little bit.