Okay, this is totally sinking in.  I can see from what y'all are
telling me that I've made a few blunders.  I've corrected my
styles.xml file so now it has this:

...
    <style name="BlueOnWhite" parent="@android:style/Theme.Light">
        <item name="android:textViewStyle">@style/BlueText</item>
    </style>
    <style name="BlueText" parent="@android:style/TextAppearance">
        <item name="android:textColor">#0033FF</item>
    </style>
...

I put the following in my manifest and it totally works!

android:theme="@style/BlueOnWhite"

My problem, however, remains.  The following line will not set the
theme:

        this.getApplicationContext().setTheme(R.style.BlueOnWhite);

I have this line in the onCreate of the first Activity called.  I have
tried it both before and after the super.onCreate() with no luck.

At present, my onCreate looks like this:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        this.getApplicationContext().setTheme(R.style.BlueOnWhite);
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
//        setContentView(R.layout.main);
        refreshList();
    }

Is anything I'm doing interfering with the theme? Does my styles.xml
look good?

-- 
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