Code example for SpinnerAdapter

Methods: getDropDownView

0
              new View(context) :
              getNothingSelectedDropdownView(parent);
        } 
 
        // Could re-use the convertView if possible, use setTag... 
        return adapter.getDropDownView(position - EXTRA, null, parent);
    } 
 
    /** 
     * Override this to do something dynamic... For example, "Pick your favorite 
     * of these 37". 
     * @param parent 
     * @return 
     */ 
    protected View getNothingSelectedDropdownView(ViewGroup parent) {
        return layoutInflater.inflate(nothingSelectedDropdownLayout, parent, false);
    } 
 
    @Override 
    public int getCount() { 
        int count = adapter.getCount();