Action1 < ? super Integer > function ( @ NonNull final AdapterView < T > arg0 ) { return new Action1 < Integer > ( ) { @ Override public void call ( Integer arg1 ) { arg0 . setSelection ( arg1 ) ; } } ; }
an action which sets the selected position of view . warning : the created observable keeps a strong reference to view . unsubscribe to free this reference . concode_field_sep PlaceHolder placeHolder concode_field_sep Observable<AdapterViewSelectionEvent> selectionEvents concode_elem_sep Observable<AdapterViewItemLongClickEvent> itemLongClickEvents concode_elem_sep Observable<AdapterViewItemLongClickEvent> itemLongClickEvents concode_elem_sep Observable<AdapterViewItemClickEvent> itemClickEvents concode_elem_sep Observable<Integer> itemClicks concode_elem_sep Observable<Integer> itemLongClicks concode_elem_sep Observable<Integer> itemLongClicks concode_elem_sep Observable<Integer> itemSelections