Reputation: 6186
I am working in android. I want to show a list of events. I can make this list using listView.
But i want to add Day just before the list of events. Means i have two arrayList
So please suggest me how can i implement this.? you can provide me link related this topic or give a code help.
I need like this :---
Thank you in advance.
Upvotes: 3
Views: 967
Reputation: 128428
You can either use Sectioned ListView(You have to customize ListView) or Expandable ListView(inbuilt).
Sectioned ListView examples:
Expandable ListView examples:
Upvotes: 2
Reputation: 30825
You can use a SimpleAdapter and bind the Name of the days to one TextView and the event name to another TextView. Your xml layout will then just be a LinearLayout, oriented horizontally, with two TextViews in it. Here's an example.
Upvotes: 1