Code example for NumberPicker

Methods: setEnabled

0
 
    @Override 
    public void setEnabled(boolean enabled) {
        super.setEnabled(enabled);
        mMHzPicker.setEnabled(enabled);
        mKHzPicker.setEnabled(enabled);
    } 
 
    public void updateFrequency(int frequency) {
        mFrequency = frequency;
        updateSpinners(); 
    } 
 
    private static class SavedState extends BaseSavedState {
 
        private final int mMHZ;
 
        private final int mKHZ;
 
        /** 
         * Constructor called from {@link FrequencyPicker#onSaveInstanceState()}