Code example for AdapterView.OnItemSelectedListener

Methods: onNothingSelected

0
   } 
 
   @Override 
   public void onNothingSelected(AdapterView<?> parent)
   { 
      listener.onNothingSelected(parent);
   } 
 
   /** 
    * This function sets the spinner's position without calling 
    * the onItemSelected function of the onItemSelectedListener object 
    * @param pos The position to set the spinner to 
    */ 
   public void setSelectionSilently(int pos)
   { 
      HDHomerunLogger.d("ArraySpinner: setSelectionSilently: pos " + pos);
      mPrevSelectedItemPos = pos;
      setSelection(pos);
   } 
    
   public int getPrevSelectedItemPos()