Code example for Spinner

Methods: setEnabled

0
 
    private AdapterView.OnItemSelectedListener mSelectionListener = new AdapterView.OnItemSelectedListener() {
 
        @Override 
        public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { 
            mPulseSpeedOff.setEnabled(getPulseSpeedOn() != 1); 
        } 
 
        @Override 
        public void onNothingSelected(AdapterView<?> parent) { 
        } 
    }; 
 
    @Override 
    public Bundle onSaveInstanceState() {
        Bundle state = super.onSaveInstanceState();
        state.putInt(STATE_KEY_COLOR, getColor());
        return state;
    } 
 
    @Override