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.
You can either use Sectioned ListView(You have to customize ListView) or Expandable ListView(inbuilt).
Sectioned ListView examples:
Expandable ListView examples:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With