You have to restart the program for themes to take effect... You can offer the ability to change themes, you just have to let the user know the change will not take effect until the app is restarted
On Dec 22, 2009 3:34 AM, "Heconi" <[email protected]> wrote: Hi all, I've been kicking the tires on Android programming and have begun to explore themes. Based on what I've read on this site regarding the built in themes, all I should have to do is call setTheme() before I load the view as follows: @Override public void onCreate(Bundle SavedInstanceState) { super.onCreate(SavedInstanceState); setTheme(android.R.style.Theme_Light); setContentView(R.layout.main); ... } I can't find any other requirements so I what I expected here was a white(ish) background with dark text. What I get is a black background with text that is dark grey (making it hard to read). It works fine when I put the style in the manifest under either the application or activity element, but what I was hoping was to give the user the ability to select which theme he/she wanted so setting the theme programmatically seemed the logical choice. What am I missing here? Thanks! Kevin -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected]<android-beginners%[email protected]> For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

