Code example for NumberPicker

Methods: setEnabled

0
    public void setEnabled(boolean enabled) {
        if (mIsEnabled == enabled) {
            return; 
        } 
        super.setEnabled(enabled);
        mDateSpinner.setEnabled(enabled);
        mMinuteSpinner.setEnabled(enabled);
        mHourSpinner.setEnabled(enabled);
        mAmPmSpinner.setEnabled(enabled);
        mIsEnabled = enabled;
    } 
 
    @Override 
    public boolean isEnabled() { 
        return mIsEnabled;
    } 
 
    /** 
     * Get the current date in millis 
     * 
     * @return the current date in millis