Beating the Fragmentation Monster: Listing 2

Main Layout for a tablet.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:orientation="horizontal"
       android:layout_width="fill_parent"
       android:layout_height="fill_parent">
  <fragment class="com.wallym.sample.fragmentexample.TitlesFragment"
            android:id="@+id/titles_fragment"
            android:layout_weight="1"
            android:layout_width="0px"
            android:layout_height="fill_parent" />
  <FrameLayout android:id="@+id/details"
               android:layout_weight="1"
               android:layout_width="0px"
               android:layout_height="fill_parent" />
</LinearLayout>

About the Author

Wallace (Wally) B. McClure has authored books on iPhone programming with Mono/Monotouch, Android programming with Mono for Android, application architecture, ADO.NET, SQL Server and AJAX. He's a Microsoft MVP, an ASPInsider and a partner at Scalable Development Inc. He maintains a blog, and can be followed on Twitter.