In my values/styles.xml file I declare 2 themes - light and dark.

In the manifest file, in the application element - i set the theme to one 
of the two - works fine.

When I have light theme set in the manifest file and in my main activity, I 
have

    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        
        this.setTheme(R.style.AppBaseThemeDark);

        setContentView(R.layout.activity_main);
    }

The result is a hybrid of light and dark - for example the windowBackground 
is light instead of dark.

What's going on?

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to