Code example for SpinnerAdapter

Methods: registerDataSetObserver

0
    return adapter.isEmpty();
} 
 
@Override 
public void registerDataSetObserver(DataSetObserver observer) {
    adapter.registerDataSetObserver(observer);
} 
 
@Override 
public void unregisterDataSetObserver(DataSetObserver observer) {
    adapter.unregisterDataSetObserver(observer);
} 
 
@Override 
public boolean areAllItemsEnabled() { 
    return false; 
} 
 
@Override 
public boolean isEnabled(int position) {
    return position == 0 ? false : true; // don't allow the 'nothing selected' item to be picked