0

I have a database with student ID's and scores that i'm trying to print out in a fragment in an android app but I can't seem to figure out how to go about doing that.

My initial thought was to use a bunch of textviews that are connected to cells in the database, but if the size of the database changes then not all of it would print out. Is there a dynamic way of going about creating textviews based on the size of the database?

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Ghazal
  • 101
  • 2
  • 13

1 Answers1

0

Use recyclerview for this. It provides scrolling also if the amount information exceeds size of the screen. Check out this video for learning how to implement it.

suku
  • 10,507
  • 16
  • 75
  • 120