Hi, I want to enable different themes in my app. Some elements need "special" variations, like, for example, a headline TextView. Lets say for the example, in theme A, I want the headline yellow on black, in theme B red on white, while the default TextView uses black on white and vice versa.
Now, I can style the default TextView pretty easy by using <item name="android:textViewStyle"> with a different TextView style in each Theme style. For example: <style name="Theme.Android.Black" parent="android:Theme.Black"> <item name="android:textViewStyle">@style/textForBlack</item> </style> <style name="Theme.Android.Light" parent="android:Theme.Light"> <item name="android:textViewStyle">@style/textForLight</item> </style> <style name="textForWhite"> <item name="android:textColor">#000000</item> </style> <style name="textForBlack"> <item name="android:textColor">#ffffff</item> </style> <style name="headlineForWhite"> <item name="android:textColor">#ffff00</item> </style> <style name="headlineForBlack"> <item name="android:textColor">#ff0000</item> </style> But how can I do it with the headline? As far as I know, I can use style="..." in the layout XML. But there, I can only use an item style like "headlineForBlack", which would ignore the current theme, while I'd rather need something like "style 'headline' for the current theme". How can I accomplish this? TIA, Mort -- 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