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
How to style dialog from DialogPreference #52
Comments
I lost a lot of time trying to figure how to implement this and at the result is quite simple, if you just want all the dialogs to have the same style. Set a theme like this to the activity implementing the preferences: `
` Take the above code as an example as I took it directly from my app, but it is working properly for me. |
What @giccisw writes is the standard way of overriding |
So to be clear @Gericop: I should be able to set the background of the displayed AlertDialog that is displayed from any DialogPreference-derived Preference? Because I have not been able to effect any changes to the dialogs. I will be trying to tweak my existing style to match what @giccisw has above (I thought mine was pretty much the same, but it could be one character off I suppose). |
Okay, I got it working. Thank you both so much. I was using "android:alertDialogTheme" instead of the plain "alertDialogTheme". Frustrating. I also was not using the PreferenceFixTheme as a base for my Preference Theme which perhaps has an effect as well. |
What is PreferenceFixTheme? |
I apologize if this is not directly related to Preference-V7-Fix - though perhaps it is something it could assist with in the future.
I have been trying to style the popup dialogs from ListPreference, but nothing is working. I have tried overriding dialogPreferenceStyle, alertDialogStyle, etc. but it is always ignored. (I changed my main preferences to use a dark background and white text, which then causes many of the text and controls in the dialogs to be white and white and thus invisible).
Is there an global dialog style in the Fix lib that might help be accomplish this?
The text was updated successfully, but these errors were encountered: