Code examples for Switch

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
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
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
94:	mActionBarSwitch.setEnabled(false); 
-
101:	mActionBarSwitch.setChecked(desiredState); 
-
103:	mActionBarSwitch.setEnabled(true); 
Full Snippet Info
8
CodeRank
52:	mSwitch.setOnCheckedChangeListener(this); 
-
63:	if (checked != mSwitch.isChecked()) { 
-
65:	mSwitch.setChecked(checked); 
Full Snippet Info
8
CodeRank
69:	if (checked != mSwitch.isChecked()) { 
-
71:	mSwitch.setChecked(checked); 
Full Snippet Info
7
CodeRank
94:	mActionBarSwitch.setEnabled(false); 
-
101:	mActionBarSwitch.setChecked(desiredState); 
-
103:	mActionBarSwitch.setEnabled(true); 
Full Snippet Info
7
CodeRank
42:	mSwitch.setOnCheckedChangeListener(null); 
Full Snippet Info
6
CodeRank
152:	if (mTimeLapseSwitch.isChecked()) { 
Full Snippet Info
6
CodeRank
69:	if (checked != mSwitch.isChecked()) { 
-
71:	mSwitch.setChecked(checked); 
Full Snippet Info
6
CodeRank