Code example for ListView

Methods: setSelection

0
	@Override 
	public void onDoubleClick(View v) {
		if (listView == null) {
			return; 
		} 
		listView.setSelection(0);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java