After reading through References To Theme Attributes<http://developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes> I am trying to reference the value of an attribute in the my custom theme that I have set.
I am applying a user-defined style to a CheckedTextView <CheckedTextView android:id="@+id/contactInfo" style="@style/ListViewCheckedTextViewRowStyle" ></CheckedTextView> The user-defined style is defined as : <style name="ListViewCheckedTextViewRowStyle" parent="@style/ListViewRowStyle"> <item name="android:checkMark">?android:listChoiceIndicatorMultiple</item></style> My theme I created is defined as : <style name="YellowGreen" parent="android:Theme.Holo.Light.DarkActionBar"> <item name="android:listChoiceIndicatorMultiple">@drawable/btn_check_holo_light</item></style> However, the checkMark styling that gets displayed is the device's default theme's drawable and not my user defined drawable. The only way I can have my drawable displayed is with : <style name="ListViewCheckedTextViewRowStyle" parent="@style/ListViewRowStyle"> <item name="android:checkMark">@drawable/btn_check_holo_light</item></style> But that defeats the whole purpose of overriding this attribute, especially since I would like to override this attribute in multiple themes. Why is this not working? -- -- 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 --- 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 android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.