Code example for ExpandableListView

Methods: getSelectedPositionsetAdaptersetOnItemClickListener, setEmptyView

0
				// adapter. It is now time to show it. 
				setListShown(true, getView().getWindowToken() != null); 
			} 
		} 
	} 
 
	/** 
	 * Set the currently selected list item to the specified 
	 * position with the adapter's data 
	 */ 
	public void setSelection(int position) {
		ensureList(); 
		mList.setSelection(position);
	} 
 
	public long getSelectedPosition() { 
		ensureList(); 
		return mList.getSelectedPosition();
	} 
 
	public long getSelectedId() {