I want to completely hide the groupIndicator in a custom ExpandableListView.
The example provided here did not seem to work.
It suggests making a selector an
You can try this code
listView = (ExpandableListView) view.findViewById(R.id.listView);
listView.setGroupIndicator(null);
listView.setChildIndicator(null);
I had the same problem and this solveed my issue. In your Listview's adapter add the following to the getGroupView.
if (groupPosition == 0) {
convertView = layoutInflater.inflate(R.layout.blank_layout, null);
} else {
convertView = layoutInflater.inflate(R.layout.group_indicator_cell,null);
}
This will blank the 0th groupof the list.
Where blank layout is a layout with some view inside having layout_height=0dp. It works!
Have you tried changing ExpandableListView
's attribute android:groupIndicator="@null"
?