@ Override public View getView ( int position , View convertView , ViewGroup parent ) { Country country = getItem ( position ) ; if ( convertView == null ) { convertView = new ImageView ( getContext ( ) ) ; } ( ( ImageView ) convertView ) . setImageResource ( getFlagResource ( country ) ) ; return convertView ; }
Drop down selected view