Code example for NumberPicker

Methods: setEnabled

0
        if (mIsEnabled == enabled) {
            return; 
        } 
        super.setEnabled(enabled);
        mMonthSpinner.setEnabled(enabled);
        mYearSpinner.setEnabled(enabled);
        mIsEnabled = enabled;
    } 
 
    @Override 
    public boolean isEnabled() { 
        return mIsEnabled;
    } 
 
    @Override 
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
        onPopulateAccessibilityEvent(event);
        return true; 
    } 
 
    @Override