写了一个小小的轮子,微信设置界面中的侧滑按钮

2015-01-03 20:22:27 +08:00
 Registering
发现测滑按钮基本是大多 app 中的设置选项的必备,近来开发中用到,所以单独写了一个小工具

样子如下( opened 单词写错了,暂时不回头改了)






代码已上传到 github ,欢迎使用。

不断刷怪升级的 android 菜鸟,不介意您给个 star 哈哈。
2804 次点击
所在节点    分享创造
12 条回复
Pete
2015-01-03 20:24:56 +08:00
不明 没有效果图吗…
chenglu
2015-01-03 20:27:44 +08:00
po地址。。。
Registering
2015-01-03 20:43:42 +08:00
Registering
2015-01-03 20:45:58 +08:00
@Livid

为什么我这个帖子不能APPEND 也不能 EDIT
chon
2015-01-03 21:29:54 +08:00
1stlulu
2015-01-03 23:17:16 +08:00


楼主 grammar mistake
Registering
2015-01-04 09:09:03 +08:00
@1stlulu


哈哈,好无情

我确定opened也是可以的哈
1stlulu
2015-01-04 23:17:38 +08:00
Registering
2015-01-04 23:58:52 +08:00
@1stlulu

学霸!
1stlulu
2015-01-05 01:31:28 +08:00
@Registering 初高中都会考这种题我现在印象还比较深而已
ledzep2
2015-01-06 10:57:02 +08:00
楼主readme里错误需要修正, 如下

*A button they you can slide to open or close something*
不要they, 本应是that, 不过也可以省略了. open and close最好换成on and off, 开关都是on和off, 空间之类才是open close. 比如门窗. 动词是turn something on and off

*About this SlideSwitch*
不要this, 多余

*you can initial the state(open or close) in jave code in this way.*
initial换成initialize, 因为需要的事动词, in this way换成this way, in是多余的.

*and you can listen the change of the slideswitch like this*
listen to the changes/events
Registering
2015-01-06 13:43:02 +08:00
@ledzep2

thx :)
哈哈,敲快了,竟然that都写成they了

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/158894

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX