This repository was archived by the owner on Mar 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,20 +10,20 @@ Android Library for Custom Switches.
1010### Where to Find:
1111[ ![ Download] ( https://api.bintray.com/packages/angads25/maven/Toggle/images/download.svg )] ( https://bintray.com/angads25/maven/Toggle/_latestVersion ) [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.github.angads25/toggle/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.github.angads25/toggle )
1212
13+ ### Read all about internal classes and functions in the [ wiki] ( https://github.com/Angads25/android-toggle/wiki ) .
1314
1415### Installation
1516
1617* Library is also Available in MavenCentral, So just put this in your app dependencies to use it:
1718``` gradle
18- compile 'com.github.angads25:toggle:1.0.0'
19+ implementation 'com.github.angads25:toggle:1.0.0'
1920```
2021
2122### Usage
2223
23- 1 . Start by adding a Switch (eg. LabeledSwitch) in your xml layout as:
24+ 1 . Start by adding a Switch (eg. ` LabeledSwitch ` ) in your xml layout as:
2425
2526 ``` xml
26-
2727 <com .github.angads25.toggle.LabeledSwitch
2828 android : id =" @+id/switch"
2929 android : layout_width =" wrap_content"
@@ -45,7 +45,7 @@ Android Library for Custom Switches.
4545 }
4646 });
4747 ```
48- That's It. All your switching callbacks would be handled in onSwitched method, isOn will provide the current state of the switch.
48+ That's It. All your switching callbacks would be handled in ` onSwitched` method, parameter ` isOn` will provide the current state of the switch.
4949
5050### Switches Available
5151
You can’t perform that action at this time.
0 commit comments