If I specify the style directly, everything works fine: <TextView ... android:textAppearance="@style/MyTextAppearance" />
where styles.xml has: <style name="MyTextAppearance" parent="@android:style/TextAppearance"> ... </style> However, I want to use a custom attribute so that the actual style used is specified by the theme. So in attrs.xml: <attr name="myTextAppearanceAttr" format="reference" /> and in styles.xml: <style name="MyTheme" parent="@android:style/Theme.NoTitleBar"> <item name="myTextAppearanceAttr">@style/MyTextAppearance</item> ... </style> and then use: <TextView ... android:textAppearance="?myTextAppearanceAttr" /> but this does not work (i.e. as if the textAppearance attribute is being ignored). -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en