-
Notifications
You must be signed in to change notification settings - Fork 868
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
Change Color in Off state #86
Comments
Update: Another way is to define both I'd like can get generated background color! |
You need to provide color selector both for thumb and background if you want colors different from the generated by |
@kyleduo Yes, I know. There is possibility to get an The best situation is get background colors from state of resource passed in |
Sry, I'm confused that you mean you've set tintColor but there's no change
on background?
The tint logic will generate a preset color for background in checked
status like this. There maybe a bug if you not see this.
Angelo Moroni <[email protected]>于2017年2月28日 周二上午12:47写道:
… @kyleduo <https://github.com/kyleduo> Yes, I know.
There is possibility to get an app:kswTintColorChecked and
app:kswTintColorUnchecked? So, background colors are be calculated from
them.
The best situation is get background colors from state of resource passed
inapp:kswTintColor. Will it possibile?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGsaVH42JILkE_7YSu-ZorcewNOYIJdxks5rgv4agaJpZM4MNPRN>
.
|
@kyleduo So, setting tint color with a resource including multiple state like this
I can see custom background color of checked state, otherwise (unchecked state) I see grey (in the background) and white (thumb color). I expected it to generate and set both colors. |
This, how it works: |
There is a way to change color in off state?
select_color file is a simple color selector
But I continue to see only On-state color (red in this example) and I don't see off-color (green in this example).
The text was updated successfully, but these errors were encountered: