public T itemClicked ( AdapterView . OnItemClickListener listener ) { if ( view instanceof AdapterView ) { AdapterView < ? > alv = ( AdapterView < ? > ) view ; alv . setOnItemClickListener ( listener ) ; } return self ( ) ; }
Register a callback method for when an item is clicked in the ListView .