Code example for ExpandableListAdapter

Methods: getChild, getGroup

0
	public boolean onChildClick(ExpandableListView listView, View view, int i,
			int j, long notSure) {
		 
		ExpandableListAdapter adapter = listView.getExpandableListAdapter();
		 
		handle = adapter.getChild(i, j).toString();
		String group = adapter.getGroup(i).toString();
 
		if(group.equals("Friends")){
			 
			pending = false;
			 
			RequestGame gameReqDialog = new RequestGame();
			gameReqDialog.set(this);
			gameReqDialog.show(parent.getSupportFragmentManager(), "Game Request With Friend");
			 
		} else { 
			pending = true;
			 
			ReplyFriendRequest reqDialog = new ReplyFriendRequest();
			reqDialog.set(this);