-
Notifications
You must be signed in to change notification settings - Fork 278
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
colorControlActivated is not the default #60
Comments
Strange. I found no reference to Can you verify what happens if you explicitly set the |
Hi, thanks for the quick reply. I added these attributes for API21+:
but unfortunately nothing changes. I just noticed something: when i switch to different themes at runtime the MaterialProgressBar stays the same color (green) even if I switch to a theme that as no green color at all. I suspect that the green color that we see in the screenshot is the colorControlActivated of the default theme that is set int he Android Manifest and that the View is not using the Theme that I'm setting at runtime. I'm using |
Sure. I've checked and the retrieved color is the wrong one. I also tried in my Activity, between the But when It seems that the context that the View is using a different Theme. I checked also the context of
and I'm getting the wrong color there too. Let me know if you want me to do more tests. |
So maybe there is some magic inserted into |
Sorry probably I'm not getting what are asking me to test because, like I said in my previous comment, I've already checked the context that MaterialProgressBar is getting in the constructor and I'm getting the wrong color also there. Let me know if you want me to test something else. |
Well I mean android.R.attr. |
Sorry, I did notice the android change. Anyway tested and is still getting the wrong color. |
Strange - how did framework Another question: Did you put the |
Yep, it is before:
|
What happens if you change your default theme's If the behavior is correct, it should be some theme switching bug. |
Sorry for the delay. Why did |
colorAccent is used instead of colorControlActivated:
Theme:
Layout:
Tested on emulator API 25 and 16.
The text was updated successfully, but these errors were encountered: