I'm using this and it works perfectly on all Android versions 1.5-3.1
(group view with two lines of text):

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="?android:attr/listPreferredItemHeight"
    android:gravity="center_vertical"
    android:alwaysDrawnWithCache="true">

        <TextView
            android:id="@+id/folder_name"
            android:text="Folder Name"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:paddingLeft="?android:attr/
expandableListPreferredItemPaddingLeft"
            android:paddingTop="4dp"/>

        <TextView
            android:id="@+id/folder_detail"
            android:text="@string/folder_detail_loading"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceSmall"
            android:paddingLeft="?android:attr/
expandableListPreferredItemPaddingLeft"
            android:paddingBottom="4dp"/>

</LinearLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to