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 @@ -25,7 +25,7 @@ Android Library for Custom Switches.
2525 ``` xml
2626
2727 <com .github.angads25.toggle.LabeledSwitch
28- android : id =" @+id/switch1 "
28+ android : id =" @+id/switch "
2929 android : layout_width =" wrap_content"
3030 android : layout_height =" wrap_content"
3131 android : layout_margin =" 16dp"
@@ -37,7 +37,7 @@ Android Library for Custom Switches.
37372. To the reference of Switch in your Activity/Fragment class and set a ToggleListener to it as below:
3838
3939 ```java
40- LabeledSwitch labeledSwitch = findViewById(R.id.switch1 );
40+ LabeledSwitch labeledSwitch = findViewById(R.id.switch );
4141 labeledSwitch.setOnToggledListener(new OnToggledListener() {
4242 @Override
4343 public void onSwitched(LabeledSwitch labeledSwitch, boolean isOn) {
@@ -49,6 +49,6 @@ Android Library for Custom Switches.
4949
5050### Switches Available
5151
52- * Labeled Switch
52+ * Labeled Switch | Designed by - [Shweta Gupta](https://dribbble.com/shwetagupta)
5353
5454
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ android {
2020
2121dependencies {
2222 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
23-
24- implementation project(' :toggle' )
23+ implementation ' com.github.angads25:toggle:1.0.0'
2524 implementation ' com.android.support:appcompat-v7:27.0.2'
2625 debugImplementation ' com.squareup.leakcanary:leakcanary-android:1.5.4'
2726 releaseImplementation ' com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
You can’t perform that action at this time.
0 commit comments