Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 9ba5131

Browse files
author
Angad Singh
committed
docs: Changed ids, added credits
1 parent f050581 commit 9ba5131

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
3737
2. 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
![Labeled Switch](https://raw.githubusercontent.com/Angads25/android-toggle/develop/screenshots/version%201/device-2018-02-21-233623.png)

app/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ android {
2020

2121
dependencies {
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'

0 commit comments

Comments
 (0)