We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3817b0 commit bb8477cCopy full SHA for bb8477c
app/src/main/java/com/xie/brad/myswitchbutton/MainActivity.java
@@ -12,6 +12,7 @@ public class MainActivity extends AppCompatActivity implements SwitchButton.OnSw
12
protected void onCreate(Bundle savedInstanceState) {
13
super.onCreate(savedInstanceState);
14
setContentView(R.layout.activity_main);
15
+
16
SwitchButton switchButton = (SwitchButton) findViewById(R.id.switchbutton);
17
switchButton.setOnSwitchListener(this);
18
}
0 commit comments