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

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

  •  
  •   Registering · Jan 3, 2015 · 3352 views
    This topic created in 4172 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
        1
    Pete  
       Jan 3, 2015 via Android
    不明 没有效果图吗…
    chenglu
        2
    chenglu  
       Jan 3, 2015
    po地址。。。
    Registering
        3
    Registering  
    OP
       Jan 3, 2015
    Registering
        4
    Registering  
    OP
       Jan 3, 2015
    @Livid

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


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


    哈哈,好无情

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

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

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