I've been trying for hours to get a default textAppearance set in a
theme, and I'm running out of hair to pull out. Here is what I have:

in res/values/thems.xml:

<resources>
    <style name="Theme.LightBlueBackground"
parent="android:Theme.Light">
        <item name="android:windowBackground">@color/bg</item>
        <item name="android:textAppearance">@style/ItalicText</item>
    </style>
    <style name="ItalicText" parent="@android:style/TextAppearance">
        <item name="android:textColor">@color/fg</item>
        <item name="android:textStyle">italic</item>
    </style>
</resources>

...which I'm setting in my manifest file, and my background color gets
set as expected.

I then have a text view like:

<TextView android:id="@+id/score"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
/>

that does not get the textAppearance applied.

I don't get any error messages, but I do get a warning which could be
relevant:

    11-01 11:22:45.734: WARN/ResourceType(582): No package identifier
when getting value for resource number 0x7f060000

And from my R.java:

    public static final int Theme_LightBlueBackground=0x7f060000;

Anybody see what I'm doing wrong?

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to