Skip to content

Commit f1148bc

Browse files
committed
edit README
1 parent 695d856 commit f1148bc

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# SwitchButton
2-
-------
32
SwitchButton.具有与IOS开关控件相似样式和行为的Android控件
3+
<img src="21879.gif" style="max-width:212px;height:182px;" />
44

5-
5+
使用方法
6+
-------
67
```
78
<attr name="sb_shadow_radius" format="reference|dimension"/> 阴影半径
89
<attr name="sb_shadow_offset" format="reference|dimension"/> 阴影偏移
@@ -24,7 +25,8 @@ SwitchButton.具有与IOS开关控件相似样式和行为的Android控件
2425
<attr name="sb_enable_effect" format="reference|boolean"/> 是否启用特效,默认true
2526
2627
27-
com.suke.widget.SwitchButton switchButton = (com.suke.widget.SwitchButton) findViewById(R.id.switch_button);
28+
com.suke.widget.SwitchButton switchButton = (com.suke.widget.SwitchButton)
29+
findViewById(R.id.switch_button);
2830
switchButton.setChecked(true);
2931
switchButton.isChecked();
3032
switchButton.toggle(); //切换开关
@@ -42,11 +44,11 @@ SwitchButton.具有与IOS开关控件相似样式和行为的Android控件
4244
```
4345

4446

45-
<img src="21879.gif" style="max-width:212px;height:182px;" />
47+
截图
48+
-------
4649
<img src="device-capture.png" style="max-width:480px;height:auto;" />
4750

4851

49-
5052
Gradle
5153
-------
5254
```

device-capture.png

-8 KB
Loading

0 commit comments

Comments
 (0)