レイアウトにフラグメントが含まれ、フラグメントに膨張したリストビューが含まれるリストフラグメント用のプログラムを作成しました。問題は、リストビューに android:list 以外の他の ID を指定すると機能しません。なぜそうなのか android:list が参照するもの。コードはメインレイアウトです:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal" >
    <fragment
        android:id="@+id/lfrag1"
        android:name="com.example.chap5.lfrag"
        android:layout_width="0dp"
        android:layout_height="200dp"
        android:layout_weight="1" />
</LinearLayout>
フラグメントごとに膨張するレイアウト
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >
    <ListView
        android:id="@+id/android:list"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >
    </ListView>
</LinearLayout>
ここで android:list として指定されているリストビューの ID は機能していますが、他の ID の場合は機能していません。親切に更新してください。