Skip to content

Commit 2178895

Browse files
committed
edit README
1 parent f34e9d2 commit 2178895

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

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

55
使用方法
66
-------
7-
```
7+
```xml
88
<attr name="sb_shadow_radius" format="reference|dimension"/> 阴影半径
99
<attr name="sb_shadow_offset" format="reference|dimension"/> 阴影偏移
1010
<attr name="sb_shadow_color" format="reference|color"/> 阴影颜色
@@ -23,8 +23,9 @@ SwitchButton.具有与IOS开关控件相似样式和行为的Android控件\<br>
2323
<attr name="sb_show_indicator" format="reference|boolean"/> 是否显示指示器,默认true:显示
2424
<attr name="sb_background" format="reference|color"/> 背景色,默认白色
2525
<attr name="sb_enable_effect" format="reference|boolean"/> 是否启用特效,默认true
26+
```
2627

27-
28+
```java
2829
com.suke.widget.SwitchButton switchButton = (com.suke.widget.SwitchButton)
2930
findViewById(R.id.switch_button);
3031
switchButton.setChecked(true);
@@ -51,7 +52,7 @@ SwitchButton.具有与IOS开关控件相似样式和行为的Android控件\<br>
5152

5253
Gradle
5354
-------
54-
```
55+
```grovvy
5556
compile 'com.github.zcweng:switch-button:0.0.1-SNAPSHOT@aar'
5657
```
5758

0 commit comments

Comments
 (0)