Comments (6)
一般这种场景是通过enabled属性控制的,Demo中包含了这个场景,触发checked事件后设置enabled为false。
不优雅是指这个方式不优雅吗,期望怎样的效果?
from switchbutton.
from switchbutton.
一般这种场景是通过enabled属性控制的,Demo中包含了这个场景,触发checked事件后设置enabled为false。
不优雅是指这个方式不优雅吗,期望怎样的效果?
不是, 不优雅主要是指UI无法体现"功能下设进行中"这个状态,
from switchbutton.
GIF 截取的是 Color OS 的 Setting,
可以看到WIFI开与关, 都有一个loading状态
from switchbutton.
理解了,希望在开关之前增加一个准备阶段。
很遗憾,目前尚不支持这个特性。可以看下是否能通过继承或者修改源码来满足你的需求。
from switchbutton.
了解, 虽然暂时没有相关思路, 但我后续会尝试一下~
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 要废弃了
- 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.