File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Then **sync** your gradle. If you have errors, try to add maven url to your `bu
2020``` groovy
2121repositories {
2222 ...
23- maven { url 'https://dl.bintray.com/ss564/SlidingButton' }
23+ maven { url 'https://dl.bintray.com/ss564/SlidingButton' }
2424 ...
2525}
2626```
@@ -36,9 +36,9 @@ In your *layout.xml* file, add the view
3636
3737``` xml
3838<id .ss564.lib.slidingbutton.SlidingButton
39- android:id=" @+id/slidingButton"
40- android:layout_width=" match_parent"
41- android:layout_height=" wrap_content" />
39+ android : id =" @+id/slidingButton"
40+ android : layout_width =" match_parent"
41+ android : layout_height =" wrap_content" />
4242```
4343
4444Yeah... just add like code above. It's pretty simple :smile :
@@ -79,9 +79,9 @@ class MainActivity : AppCompatActivity() {
7979
8080 // access view using synthetic, do your own style to access the view :)
8181 slidingButton.setOnStatusChangeListener { active ->
82- // or using `object : SlidingButton.OnStatusChangeListener` instead of lambda
83-
84- // do what you wanna to do
82+ // or using `object : SlidingButton.OnStatusChangeListener` instead of lambda
83+
84+ // do what you wanna to do
8585 }
8686 }
8787}
You can’t perform that action at this time.
0 commit comments