Code example for SeekBar

Methods: setEnabled

0
    } 
 
    private void updateEnabledStates() { 
        boolean enable = mEnabledCheckbox.isChecked();
        mMinVolumeTitle.setEnabled(enable);
        mMinVolumeSeekBar.setEnabled(enable);
        mRingVolumeNotice.setEnabled(enable);
        mIntervalTitle.setEnabled(enable);
        mInterval.setEnabled(enable);
    } 
 
    @Override 
    protected Parcelable onSaveInstanceState() {
        final Parcelable superState = super.onSaveInstanceState();
        if (isPersistent()) { 
            // No need to save instance state since it's persistent 
            return superState;
        } 
 
        final SavedState myState = new SavedState(superState);
        if (mEnabledCheckbox != null) {