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- -------
32SwitchButton.具有与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-
5052Gradle
5153-------
5254```
You can’t perform that action at this time.
0 commit comments