Have to ask for help. I'm new to developing for Android, and I have got a question on how to assign the onTouch event to child element ExpandableListView. I added elements dynamically (parent and child) made like this , is there some way to that onChildClick could continue to assign event onTouch?
Try returning false in the onChildClick method. Normally this means that the event has not been processed. If you return false, the event should be passed down.
elv.setOnChildClickListener(new ExpandableListView.OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v){
return false;
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.