android - Use onChildClickListener with ExpendableListView -
how use onclicklistener expendable list view in such way clicking child item creates new activity?
i did guy made don't have idea how make child item create new activity. explained bit in comments don't know go after
expandlistchild ch = explistitems.get(groupposition).getitems().get(childposition);
i included
expandlist.setonchildclicklistener(expandlist_itemclicked);
on oncreate method. know have 'ch' variable, don't know values corresponding clicked item are. can please help?
onchildclick (expandablelistview parent, view v, int groupposition, int childposition, long id)
when childclick listener called information need, ch not needed.
Comments
Post a Comment