Comments (9)
抱歉!这是我实现上的一个疏忽,现在已经修复,谢谢你的支持。
from switchbutton.
谢谢,修复了,请问这个是什么原因会导致在onPost里无法修改值?
from switchbutton.
这……上一条回复已经说明了,setChecked 方法内部调用有问题,具体你可以diff一下代码,看我改了哪里。
from switchbutton.
逻辑上感觉还是有问题,我先setChecked,然后再setOnCheckedChangeListener,仍然会调用checkedChange的回调
from switchbutton.
再提一个,快速滑动checkbox有时候会“反弹”
from switchbutton.
还有一个typo, 下面的2st应该改为2nd
Change Style In Code \n(use the 1st to change the 2st one)
from switchbutton.
多谢反馈这么多问题,我会尽快完善的。第一个listener会调用是动画调用顺序的问题,暂时你可以通过先设置listener后setChecked解决。感谢
from switchbutton.
1.2.3。对于回调,我调整了setChecked和toggle()方法的逻辑,使得默认方法名调用保持和CheckBox同样的效果;同时保留了带有动画效果的方法,细节还请查看MEADME。保持你现在的调用方式,应该就没有问题了。反弹的问题我多次测试没有复现,但是我在touch事件处理中做了优化,不知道能否对你的问题有帮助。再次谢谢你的反馈。
from switchbutton.
谢谢,目前使用起来正常了。
另外建议把一些没必要的文件使用gitignore屏蔽,比如bin目录下的。
因为diff看起来受一些无关文件干扰:)
from switchbutton.
Related Issues (20)
- this library need to support androidx HOT 1
- 怎么渐变背景使用自己设置的颜色而不是变透明的颜色,不想设置透明度? HOT 1
- 关于kswBackColor
- 自定义主题的SwitchButton实现IOS的SwitchButton HOT 1
- extends SwitchButton扩展存在的问题 HOT 1
- RTL layout support
- isPressed() method returns false in setOnCheckedChangeListener()
- 修改滑道的宽度, 会影响到滑块的比例, 使其变形 HOT 2
- 能不能弄个中文的 属性 释义 HOT 2
- textOff always visible in background HOT 1
- how to change the switch-on or switch-off text color ? HOT 1
- jCenter 要废弃了
- 若要添加enabling与disabling状态, 有哪些实现方式? HOT 6
- Failed build after removing jcenter() and changing to mavenCentral() HOT 3
- 不能设置打开关闭text的文字大小和颜色吗 HOT 1
- How to change kswtintcolor to gradiant color attribute... It generate error when i use it.
- tty,ou,snowkno,w/Kyle "duo"://
- 3793183974058878pleasebesquareone Roundtable https://www.facebook.com/andto379318397405887
- Mary Kay Jacob Athirst from my own what am I gonna do ?
- 咱们这个开关如何优雅的实现触发点击事件,但是不要进行checked状态切换? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from switchbutton.