How to display a list of results in an activity? [closed]

0

I have a fairly limited knowledge on programming and I'm starting Android now. I started developing an Android project for physiotherapy.

In this project, physiotherapists will be able to register and log in to edit, display, and record patient data, among other things. I'm using PHP, MySQL and Android to do this whole process. For now, I was able to communicate between Android and PHP to exchange Json objects.

My problem is: when the physiotherapist logs in, the patients that have been registered by him must be shown ON THE OTHER SCREEN. The problem is that Android is directly tied to XML and I do not know how I'm going to add those patients in proportion to what's in the database. It may have 1,2,3,30,40, etc.

Could someone give me a light so I know how I can display this data and if I can create buttons to edit and delete those patients (tied to their name)? I already researched a lot but the most I found was the display of data in a static way, without interaction.

    
asked by anonymous 21.06.2017 / 17:58

1 answer

1

In this case you have to use one of the list components in Android.

The ListView is simpler but has become obsolete with the arrival of RecyclerView.

These two components are used for repeating lists. I leave it for reference: What is RecyclerView on Android?

And you have the very tutorial Google that teaches you to use: link

    
21.06.2017 / 20:17