-
Notifications
You must be signed in to change notification settings - Fork 407
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
Using a style causes crash #38
Comments
Parent for How can we change the header background? One of the attributes that
To change the header background, you'll need to override Start with defining top-level characteristics:
That should do it. Also note that overriding |
Thank you so much! This solved my problem. I really appreciate your time in answering this so thoroughly. :) |
Apologies but I need to ask one more thing; I cannot figure out how to change the "Ok" and "Cancel" colors. I know this probably very basic but my understanding of themes and styles is less than it should be. Thank you again for your time! |
We'll have to go further down the style hierarchy to change
That looks about right. Let me know if it works.
No, its quite a challenge. See my answer here: How to explore styling in android :-) |
I actually JUST figured this out a few minutes ago, and was on my way here to post it when your response came in. Again, thank you so much for taking the time. Here's what solved it for me:
|
I apologize - I thought/assumed that you were asking about the text color. One issue with your solution will be that all |
You're correct, that's what I was asking about. I see your point about that - it actually does work for me technically, but your solution is much more specific and correct. Thanks for pointing that out. |
Hi,
Love this library, but having some trouble, and need a bit of help. No matter what I do, I cannot get the colors to change. I have tried to follow the other thread here about styles and colors, but it makes very little sense to me. Whenever I define a style for the picker under styles.xml, my app crashes with:
Binary XML file line #15: Error inflating class com.appeaser.sublimepickerlibrary.SublimePicker
The line that causes this is:
and the style definition is:
No matter what I put, the result is always the same. Just this one tag in the app theme definition causes an immediate crash when I called .show() on the DialogFragment. When I remove this, it runs, but with the teal color.
I'd be most grateful if you could give me some guidance on this.
Thanks!
The text was updated successfully, but these errors were encountered: