I will tell you about it.
If your data is limited, and you will certainly display all of them on one screen presentably, then yes, TableLayout will be enough.
However, in the real world, flexibility is calculated, so you should always consider the possibility that your data may expand in the future. With this in mind, you should use ListView or RecyclerView in this case. Define a basic layout for each line of your list or list of recyclers, and then combine the data from your database with this view using a suitable adapter.
To get started: https://developer.android.com/training/material/lists-cards.html
source share