Giter VIP home page Giter VIP logo

Comments (9)

kyleduo avatar kyleduo commented on July 20, 2024

抱歉!这是我实现上的一个疏忽,现在已经修复,谢谢你的支持。

from switchbutton.

BaronZ avatar BaronZ commented on July 20, 2024

谢谢,修复了,请问这个是什么原因会导致在onPost里无法修改值?

from switchbutton.

kyleduo avatar kyleduo commented on July 20, 2024

这……上一条回复已经说明了,setChecked 方法内部调用有问题,具体你可以diff一下代码,看我改了哪里。

from switchbutton.

BaronZ avatar BaronZ commented on July 20, 2024

逻辑上感觉还是有问题,我先setChecked,然后再setOnCheckedChangeListener,仍然会调用checkedChange的回调

from switchbutton.

BaronZ avatar BaronZ commented on July 20, 2024

再提一个,快速滑动checkbox有时候会“反弹”

from switchbutton.

BaronZ avatar BaronZ commented on July 20, 2024

还有一个typo, 下面的2st应该改为2nd
Change Style In Code \n(use the 1st to change the 2st one)

from switchbutton.

kyleduo avatar kyleduo commented on July 20, 2024

多谢反馈这么多问题,我会尽快完善的。第一个listener会调用是动画调用顺序的问题,暂时你可以通过先设置listener后setChecked解决。感谢

from switchbutton.

kyleduo avatar kyleduo commented on July 20, 2024

1.2.3。对于回调,我调整了setChecked和toggle()方法的逻辑,使得默认方法名调用保持和CheckBox同样的效果;同时保留了带有动画效果的方法,细节还请查看MEADME。保持你现在的调用方式,应该就没有问题了。反弹的问题我多次测试没有复现,但是我在touch事件处理中做了优化,不知道能否对你的问题有帮助。再次谢谢你的反馈。

from switchbutton.

BaronZ avatar BaronZ commented on July 20, 2024

谢谢,目前使用起来正常了。
另外建议把一些没必要的文件使用gitignore屏蔽,比如bin目录下的。
因为diff看起来受一些无关文件干扰:)

from switchbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.