Going to ask this one again...

I've seen this posted more than once, with no solution.  I have this
code:

 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstance);
        setTheme(android.R.style.Theme_Dialog);
        setContentView(R.layout.main);

}

the Theme is never applied.  I've tried placing it before
super.OnCreate, which results in unpredictable behavior (theme is
applied, but background is black, and no, I'm not setting the
background to black anywhere).  I'm trying
to dynamically change Themes on configuration changes, so placing this
in the Manifest isn't an
option.

I've submitted a bug report for this.  I believe Hackborn and Romain
have reported this working for them, but it seems that the majority of
developers are unable to get this method of setting a theme to work.

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to