Code example for ExpandableListView

Methods: expandGroupsetAdapter

0
 
		activity.runOnUiThread(new Runnable(){
 
			@Override 
			public void run() { 
				listView.setAdapter(adapter);
				hallNum = position;
				//refreshAdapter(answer); 
				  adapter.notifyDataSetChanged();
				  listView.expandGroup(0);
				  //listView.setOnGroupClickListener(adapter); 
				  //listView.setOnGroupCollapseListener(adapter); 
				  //listView.setOnGroupClickListener(onGroupClickListener) 
			} 
			 
		}); 
 
 
 
		//Log.d("answer",answer); 
		return convertView;