Using listItemFirstLineStyle in my own layout

I am trying to create my own ListView template similar to android.R.layout.simple_list_item_2. However, when I use the following in my XML, I get the error message "No resource found matching this name? Android: attr / listItemFirstLineStyle".

<TextView
    android:id="@+id/text1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    style="?android:attr/listItemFirstLineStyle" />

Can someone tell me how to fix this or how to find the style properties so that I can copy them. I am using Android 2.2.

+3
source share
1 answer

An issue has been detected - android: attr / listItemFirstLineStyle for the old version of the SDK, I think. For 2.0 and above - use android: attr / textAppearanceLarge NOT android: attr / listItemFirstLineStyle

http://www.google.com/codesearch/p?hl=en#uX1GffpyOZk/core/res/res/layout/simple_list_item_2.xml

+4

All Articles