Best code examples for TextView setEnabled method (android.widget.TextView.setEnabled)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for TextView setEnabled method.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

TextView setEnabled examples from Open Source projects
This code example shows how to use the following methods: setChecked, setEnabled
94:	mActionBarSwitch.setEnabled(false); 
-
101:	mActionBarSwitch.setChecked(desiredState); 
-
103:	mActionBarSwitch.setEnabled(true); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setVisibility, setEnabled
131:	mRingVolumeNotice.setVisibility(visible ? View.VISIBLE : View.GONE); 
-
138:	mRingVolumeNotice.setEnabled(enable); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isChecked, setOnCheckedChangeListener, setChecked, setEnabled
137:	mSwitch.setEnabled(true); 
-
146:	if (isChecked != mSwitch.isChecked()) { 
-
150:	mSwitch.setOnCheckedChangeListener(null); 
-
152:	mSwitch.setChecked(isChecked); 
-
154:	mSwitch.setOnCheckedChangeListener(this); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setEnabled
54:	mValidateButton.setEnabled(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
94:	mButton.setEnabled(checked); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
47:	viewButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setOnClickListener, setEnabled
112:	btnPositive.setEnabled(true); 
-
114:	btnPositive.setOnClickListener(positiveClickListener); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setFocusable, setEnabled
109:	mSendButton.setEnabled(mCanSend); 
110:	mSendButton.setFocusable(mCanSend); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setChecked, setEnabled
94:	mActionBarSwitch.setEnabled(false); 
-
101:	mActionBarSwitch.setChecked(desiredState); 
-
103:	mActionBarSwitch.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isChecked, setOnCheckedChangeListener, setChecked, setEnabled
80:	mSwitch.setOnCheckedChangeListener(this); 
-
137:	mSwitch.setEnabled(true); 
-
146:	if (isChecked != mSwitch.isChecked()) { 
-
150:	mSwitch.setOnCheckedChangeListener(null); 
-
152:	mSwitch.setChecked(isChecked); 
-
154:	mSwitch.setOnCheckedChangeListener(this); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setEnabled
38:	btnSearch.setEnabled(true); 
-
40:	btnSearch.setEnabled(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
47:	viewButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled, setInputType, setMaxHeight, setText
43:	mEditText = new EditText( activity ); 
-
46:	mEditText.setText(text); 
-
48:	mEditText.setEnabled( editable ); 
49:	mEditText.setMaxHeight( 250 ); 
-
52:	mEditText.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD ); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setEnabled
48:	viewButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
75:	btn.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled, setInputType
40:	mEditText = new EditText( activity ); 
41:	mEditText.setEnabled( true ); 
42:	mEditText.setInputType( InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD ); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setEnabled
365:	_okButton.setEnabled(v); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
47:	viewButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setContentDescription, setEnabled
204:	mRight.setEnabled(enabled); 
-
207:	mRight.setContentDescription(null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isEnabled, setVisibility, setEnabled
105:	next.setEnabled(nextAvailable); 
-
113:	next.setVisibility(next.isEnabled() ? View.VISIBLE : View.INVISIBLE); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setFocusable, setTag, setEnabled, setText
288:	EditText field = new EditText(this); 
289:	field.setEnabled(enabled); 
290:	field.setFocusable(enabled); 
291:	field.setTag(id); 
292:	field.setText(value); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
48:	viewButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
188:	mOkButton.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setVisibility, setEnabled
73:	mNewGroupInput.setVisibility(vis ? View.VISIBLE : View.GONE); 
74:	mNewGroupInput.setEnabled(vis); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setClickable, setEnabled
146:	btnSubmit.setEnabled(true); 
147:	btnSubmit.setClickable(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
60:	restartButton.setEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled
176:	mIncreaseFontButton.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
151:	allowContactCheckBox.setEnabled(isChecked); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setContentDescription, setEnabled
201:	mLeft.setEnabled(enabled); 
-
204:	mLeft.setContentDescription(null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled, setFilters, setText
37:	this.cQX.setEnabled(true); 
-
41:	localEditText.setFilters(arrayOfInputFilter); 
-
224:	this.cQX.setText(this.cQY); 
-
237:	this.cQX.setEnabled(false); 
-
241:	localEditText2.setFilters(arrayOfInputFilter2); 
-
243:	c(this.cQX); 
-
252:	this.cQX.setEnabled(false); 
-
256:	localEditText1.setFilters(arrayOfInputFilter1); 
-
259:	c(this.cQX); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
46:	viewButton.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getText, setEnabled, setText
92:	final CharSequence currentText = moveonButton.getText(); 
93:	moveonButton.setText("Move on skickat!"); 
94:	moveonButton.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
73:	mOkButton.setEnabled(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
150:	recipientTextEdit.setEnabled(true); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setFocusable, setEnabled
106:	mSendButton.setEnabled(mCanSend); 
107:	mSendButton.setFocusable(mCanSend); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
47:	viewButton.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
149:	mLabelName.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: requestFocus, setVisibility, setEnabled
35:	eMail.setVisibility(View.VISIBLE); 
36:	eMail.setEnabled(true); 
37:	eMail.requestFocus(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
44:	viewButton.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
72:	btn.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
80:	okButton.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
49:	btnProfileUpdate.setEnabled(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled
101:	mValidateButton.setEnabled(true); 
Full Snippet Info
6
CodeRank
Related TextView setEnabled Questions & Answers:
Other TextView setEnabled Examples
61:					Log.e("TTS", "This Language is not supported");
62:				} else {
63:					btnSpeak.setEnabled(true);
64:					speakOut();
65:				}

Read More

setEnabled Method Overview
Set the enabled state of this view.
See Also