Spinner setEnabled - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spinner setEnabled method.

This code example shows how to use the following methods: setEnabled
	public void setModifiable(boolean enabled) {
		if(enabled)
			button.setVisibility(VISIBLE);
		else 
			button.setVisibility(INVISIBLE);
		spinner.setEnabled(enabled);
	} 
	 
	public void setLast() { 
		selectionExtra = ":";
	} 
	 
	public String getSelection() {
		return spinner.getSelectedItem().toString() + selectionExtra;
	} 
	 
	private void remove() { 
		if(parentView != null)
			parentView.removeView(this);
		if(tagsFragment != null)
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setEnabled
        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) {
            myState.mEnabled = mEnabledCheckbox.isChecked();
        } 
Full Snippet Info
6
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setEnabled
    @Override 
    public void onClick(View v) {
        if (v == mEnabledCheckBox) {
            boolean enabled = mEnabledCheckBox.isChecked();
            mPasswordEdit.setEnabled(enabled);
            mWepTypeSpinner.setEnabled(enabled);
            mShowPasswordCheckBox.setEnabled(enabled);
            if (!enabled) {
                password = ""; // always resets the password
            } 
        } else if (v == mShowPasswordCheckBox) {
            setShowPassword(mShowPasswordCheckBox.isChecked());
        } 
    } 
 
    private void setShowPassword(boolean showPassword) {
        mPasswordEdit.setInputType(InputType.TYPE_CLASS_TEXT
                        | (showPassword ? InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
                                        : InputType.TYPE_TEXT_VARIATION_PASSWORD));
    } 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setEnabled, getSelectedItemPosition
                mAutoLoginHandler = null;
            } 
            hideAutoLogin(true); 
        } else if (mAutoLoginLogin == v) {
            if (mAutoLoginHandler != null) {
                mAutoLoginAccount.setEnabled(false);
                mAutoLoginLogin.setEnabled(false);
                mAutoLoginProgress.setVisibility(View.VISIBLE);
                mAutoLoginError.setVisibility(View.GONE);
                mAutoLoginHandler.login(
                        mAutoLoginAccount.getSelectedItemPosition(), this);
            } 
        } 
    } 
 
    public void updateAutoLogin(Tab tab, boolean animate) {
//        DeviceAccountLogin login = tab.getDeviceAccountLogin(); 
//        if (login != null) { 
//            mAutoLoginHandler = login; 
//            ContextThemeWrapper wrapper = new ContextThemeWrapper(mContext, 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: setVisibility, setEnabled
 
	} 
 
	public void showActivityUI(boolean shouldShow) {
		mStartButton.setEnabled(shouldShow);
		mActivities.setEnabled(shouldShow);
		if (shouldShow) {
			mStartButton.setVisibility(View.VISIBLE);
			mActivities.setVisibility(View.VISIBLE);
			mLabel.setVisibility(View.VISIBLE);
		} else { 
			mStartButton.setVisibility(View.GONE);
			mActivities.setVisibility(View.GONE);
			mLabel.setVisibility(View.GONE);
		} 
	} 
 
	/** 
	 * Populates the activity selection spinner and activates start button if 
	 * needed. 
Full Snippet Info
5
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Spinner setEnabled Questions & Answers:

setEnabled Method Overview
Set the enabled state of this view.
See Code Examples for other Android Spinner Methods: