@ SuppressLint ( "InlinedApi" ) @ Override public View getDropDownView ( int position , View convertView , ViewGroup parent ) { SpinnerItem spinnerItem = mItems . get ( position ) ; spinnerItem . setOnChangedListener ( this , position ) ; // we can't use the convertView because it keeps handing us spinner layouts (mSpinnerId) View spinnerItemView = mInflater . inflate ( mSpinnerItemId , parent , false ) ; int key = ( position << 16 ) + getItemViewType ( position ) ; mViewCache . put ( key , spinnerItemView ) ; bindView ( position , spinnerItemView , spinnerItem ) ; return spinnerItemView ; }
Returns the spinner entry view