爱意满满的作品展示区。
Registering

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

  •  
  •   Registering · Jan 3, 2015 · 3648 views
    This topic created in 4323 days ago, the information mentioned may be changed or developed.
    发现测滑按钮基本是大多 app 中的设置选项的必备,近来开发中用到,所以单独写了一个小工具

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






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

    不断刷怪升级的 android 菜鸟,不介意您给个 star 哈哈。
    12 replies  •  2015-01-06 13:43:02 +08:00
    Pete
    Pete
    Jan 3, 2015 via Android
    1
    不明 没有效果图吗…
    chenglu
    chenglu
    Jan 3, 2015
    2
    po地址。。。
    Registering
    Registering
    OP
    Jan 3, 2015
    3
    Registering
    Registering
    OP
    Jan 3, 2015
    4
    @Livid

    为什么我这个帖子不能APPEND 也不能 EDIT
    1stlulu
    1stlulu
    Jan 3, 2015
    6


    楼主 grammar mistake
    Registering
    Registering
    OP
    Jan 4, 2015
    7
    @1stlulu


    哈哈,好无情

    我确定opened也是可以的哈
    Registering
    Registering
    OP
    Jan 4, 2015
    9
    @1stlulu

    学霸!
    1stlulu
    1stlulu
    Jan 5, 2015
    10
    @Registering 初高中都会考这种题我现在印象还比较深而已
    ledzep2
    ledzep2
    Jan 6, 2015
    11
    楼主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
    Registering
    OP
    Jan 6, 2015
    12
    @ledzep2

    thx :)
    哈哈,敲快了,竟然that都写成they了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1456 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 18:26 · PVG 02:26 · LAX 10:26 · JFK 13:26
    ♥ Do have faith in what you're doing.