Code example for NumberPicker

Methods: setEnabled

0
     
    @Override 
    public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        mDayPicker.setEnabled(enabled);
        mMonthPicker.setEnabled(enabled);
        mYearPicker.setEnabled(enabled);
    } 
 
    private void reorderPickers(String[] months) {
        java.text.DateFormat format;
        String order;
 
        /* 
         * If the user is in a locale where the medium date format is 
         * still numeric (Japanese and Czech, for example), respect 
         * the date format order setting.  Otherwise, use the order 
         * that the locale says is appropriate for a spelled-out date. 
         */ 
 
        if (months[0].startsWith("1")) {