Jesus Garcia
Jesus Garcia

Reputation: 61

Android - How to implement a List with detail on the same List?

I'm using a ListActivity to list events, and i want to show the events and after that i want to show the list of participants on the same List.

enter image description here

I'm getting JSON data to get the information and one element is a List of the participants.

To show the data i'm using an ArrayAdapter.

EventosAdapter adapter = new EventosAdapter(this, R.layout.item_evento, EventosList);
setListAdapter(adapter);

The question is, what is the correct way to do this?

Use a LinearLayout inside the ListActivity and to show the detail info use another ArrayAdapter?

Upvotes: 0

Views: 66

Answers (1)

Related Questions