1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:orientation="vertical" 5 android:layout_width="fill_parent" 6 android:layout_height="fill_parent"> 7 <LinearLayout 8 android:layout_width="match_parent" 9 android:id="@+id/linearLayout1" 10 android:layout_height="match_parent" 11 android:orientation="horizontal"> 12 <fragment 13 class="com.example.android.wifidirect.DeviceListFragment" 14 android:id="@+id/frag_list" 15 android:layout_width="@dimen/phone_list_height" 16 android:layout_height="match_parent"> 17 <!-- Preview: layout=@layout/row_devices --> 18 </fragment> 19 <fragment 20 class="com.example.android.wifidirect.DeviceDetailFragment" 21 android:id="@+id/frag_detail" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"> 24 <!-- Preview: layout=@layout/device_detail --> 25 </fragment> 26 </LinearLayout> 27 </LinearLayout> 28