Android ExpandableListView And OnChildClick Not Working
I've been reading a lot of threads with the same problem that I have, but I can't figure out what's happening. I have a expandable list view, but I can't make the onChildClickListe
Solution 1:
I had the same problem. My ExpandableListView's childs had two ImageViews and a TextView. Setting the property TextView:focusable to "false" in the layout file solved the issue. Strangely, the same code (without setting the focusable property) worked fine in API8 but when executed on API16 emulator, childs didn't respond to click.
Solution 2:
I had the same problem. For my case, In getGroupView method in ExpandableListViewAdapter class I set
convertView.setClickable(false);
Then, go to the getChildView in ExpandableListViewAdapter and set
convertView.setClickable(false);
It works for me.
Post a Comment for "Android ExpandableListView And OnChildClick Not Working"