Code example for ListView

Methods: setSelection

0
	@Override 
	public void onDoubleClick(View v) {
		if (listView == null) {
			return; 
		} 
		listView.setSelection(0);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java