Code example for ListView

Methods: setSelection

0
	public void setSelection(int position) {
		if (state == REFRESHING) {
			position++;
		} 
 
		listView.setSelection(position);
	} 
 
	public void setSelectionFromTop(int position, int y) {
		if (state == REFRESHING) {
			position++;
		} 
 
		listView.setSelectionFromTop(position, y);
	} 
 
	public void setOnItemClickListener(OnItemClickListener listener) {
		onItemClickListener = listener;
 
		listView.setOnItemClickListener(new OnItemClickListener() {