pellucide / android-switch-demo-pre-4.0 Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Great work!
Could you please specify which license is this cool work distributed under?
Any chance for releasing it under Apache License 2.0?
Trying to change the size of the Pepsi/Coke slider. So far I've tried to change a few variables around in the MySwitch class, but it hasn't scaled it effectively. Any suggestions on how to make that slider smaller?
I just found this repo and I already love it!
I now want to implement the id/pickup3 from the example. I changed the words "Delivery" and "Pickup" to On and Off respectively. Unfortunately I now have the following code:
mySwitch:textOff="On"
mySwitch:textOn="Off"
So I want the button in the left position to be off/false, and the button to the right position to be on/true. Where should I change the code to achieve this?
All tips are welcome!
In my case (Android 4.x & 5.x), these overrides caused the switch layout rectangle to be twice its desired height. Because physical switch dimensions were added to padding area. That caused pretty awesome layout issues :)
Do these functions play any significant role in Android 2.x? Edit: Just tried in Froyo and it's working normally with these functions commented out.
how to change width and height of Switch?
What would be the best way to update the track color when the state changes? For instance, when the slider is 'ON' it is blue. When the slider is 'OFF' it changes to grey.
I'm not quite sure how to approach this task. Perhaps someone can provide me some insight into accomplishing the color change.
If the track drawable has a padding, then the attribute "thumbExtraMovement" needs to be a appropriate value to make the thumb completely overlap the ends. Remove the dependancy of "thumbExtraMovement" on the padding
I'm new to GitHub and I don't know if this is the correct place to ask: How can I catch the event when the user slide and raise the right side of your "slide to Unlock" widget.
Thanks this is a fantastic widget and that part is the only one that I need to finish a project.
Hope you can help me.
Greetings!!!
How can I round the corners some more? What variables need to be changed?
Hi, I've noticed that when using targetSDK over 11, the drawables don't show. Only a flat grey colour. I'm guessing there must be something thats been implemented differently between the sdk's but I just don't know were to start?
I posted on the SO thread: http://stackoverflow.com/questions/9752760/slide-toggle-for-android. More than happy to do the work, just don't know where to start!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.