Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Button color at runtime from code. #42

Open
vivekios opened this issue Oct 24, 2019 · 3 comments
Open

Changing Button color at runtime from code. #42

vivekios opened this issue Oct 24, 2019 · 3 comments

Comments

@vivekios
Copy link

How can i change the color from code.
For example: i have online / offline state.
For online: it becomes green.
For offline: gray color
Now suppose at some point of time i want to show busy instead of online.
For busy i want to change the on color state to red.
How to make this at runtime from code ?

@belljay
Copy link

belljay commented Apr 24, 2020

@vivekios I needed to use it for my code so I forked it and fixed forward. Feel free to use https://github.com/belljay/SwitchButton

@buelersandra
Copy link

@belljay seen the forked project. can't find the method called to change the button color.

@belljay
Copy link

belljay commented Jun 12, 2020

@buelersandra I somehow messed up my branch. Added. setCheckedButtonColor and setUncheckedButtonColor

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

No branches or pull requests

3 participants