Error: No resource found that matches the given name: attr 'listViewStyle'
12,299
I feel so stupid!
<item name="android:listViewStyle">
instead of
<item name="listViewStyle">
Comments
-
Waza_Be about 2 years
I am trying to theme my default listview theme. I have read a lot of stuff on the web and they are all saying this should work:
<style name="Theme.MyTheme" parent="@style/Theme.Sherlock.Light"> <item name="textColor">@color/darkblue</item> <item name="listViewStyle">@style/MyListViewTheme</item> </style>
with this theme for the ListView:
<style name="MyListViewTheme" parent="@android:style/Widget.ListView"> <item name="android:textColor">@color/darkblue</item> <item name="android:typeface">sans</item> </style>
Unfortunately, I get this error:
Error: No resource found that matches the given name: attr 'listViewStyle'.
I really don't understand why I cannot use listViewStyle attribute.
Source:
http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/