I am trying to implement a listView inside another listView as shown in android: listview in listview
The problem is that only the first item of the child list is visible while remaining remain hidden.
I am trying to implement a listView inside another listView as shown in android: listview in listview
The problem is that only the first item of the child list is visible while remaining remain hidden.
What is the usage for you to give Listview inside Listview..Better you can use expandable ListView
First, why do you want to put a ListView in a ListView ? Maybe your problem can be solved by using an ExpandableListView.
A ListView is a scrollable component and it's not a good idea to nest scrollable components.
If you still want to use nested ListView, you have to know that the calculated height of a ListView is the height of his first element.
So if you want to use a ListView in a ListView, you will have to code a CustomListView and Override some methods as :
To know more about Custom components, here is a nice explanation given by Chiuki Chan : Follow the link
I just thought you may had something wrong in item XML file.Check whether you used "match_parent" or "fill_parent".