Skip to content

Commit c4731f9

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 3411eeb + f1baccc commit c4731f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,19 @@ dbHelper.getRecordCount(tableName, values, hasConditions, conditionalValues);
301301
app:typeface="QuattrocentoSans-Regular.ttf" />
302302
```
303303

304+
```java
305+
// the below code shows how to use the SwitchButton to get the selected values.
306+
SwitchButton switchButton = findViewById(R.id.switchButton);
307+
switchButton.setOnSwitchListener(new SwitchButton.OnSwitchListener()
308+
{
309+
@Override
310+
public void onSwitch(int i, String tabText)
311+
{
312+
Toast.makeText(MainActivity.this, "selected tab text is: " + tabText, Toast.LENGTH_SHORT).show();
313+
}
314+
});
315+
```
316+
304317
### MyLocation class
305318

306319
>**This class will get the current location of the user.**

0 commit comments

Comments
 (0)