use of android.widget.Switch in project android_frameworks_base by crdroidandroid.
the class ElementLayoutActivity method createSwitch.
private void createSwitch() {
Switch button = new Switch(this);
button.setChecked(mRandom.nextBoolean());
mLayout.addView(button);
}
Aggregations