File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
5253Gradle
5354-------
54- ```
55+ ``` grovvy
5556compile 'com.github.zcweng:switch-button:0.0.1-SNAPSHOT@aar'
5657```
5758
You can’t perform that action at this time.
0 commit comments