Git Product home page Git Product logo

android-switch-demo-pre-4.0's People

Contributors

jpbrahma avatar pellucide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-switch-demo-pre-4.0's Issues

Changing the switch thumb size

Which variables change the size of the white thumb area that is used in the slider? As you can see from the image below, the white area is too skinny.

image

Licensing

Great work!
Could you please specify which license is this cool work distributed under?
Any chance for releasing it under Apache License 2.0?

Scaling & Resizing Issue

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?

How to switch on and off from left to right

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!

What's the function of getCompoundPaddingXXX() functions?

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.

MySwitch Padding / Margins

How do I remove the padding/margin for the MySwitch class? I am getting some space underneath the object, which I need to get rid of.
image

Dynamically Changing the Track Color

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.

Improve handling of padding from the track drawables

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

Drawable gets darkened

Thanks for sharing such a handy library! By the way I spent a couple hours trying to figure out why the left drawable gets so much darkened

Modified yours to this:

sleft_background_copy1 9

But I'm getting this instead:

dark_toggle

Any hints?

Thanks

Catch Slide Event from Activity

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!!!

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.