Skip to content
This repository has been archived by the owner on Jan 12, 2018. It is now read-only.

resize and color change #5

Open
vikky001 opened this issue Mar 26, 2014 · 1 comment
Open

resize and color change #5

vikky001 opened this issue Mar 26, 2014 · 1 comment

Comments

@vikky001
Copy link

how do i resize that switch and also change the color...like when it is off..red color and when it is On ..green color by codeing...or i have to change the drawables in library for that...In On/Off switch
any simple suggestion

@ghost
Copy link

ghost commented Mar 28, 2014

@vikky001 - the solutions the same, either you change the drawables (the nine-patch images) to smaller versions, or create your own drawables, that includes the thumb since that is the one that actually determines the height of the switch. You could have a look at https://github.com/hearbeathorror/Switch-Compat-Changing-Colors an application that uses this library but with different colors and thinned versions of the switch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant