Skip to content

Instantly share code, notes, and snippets.

@daichan4649
Created December 17, 2012 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daichan4649/4319063 to your computer and use it in GitHub Desktop.
Save daichan4649/4319063 to your computer and use it in GitHub Desktop.
Multi-pane Layouts (for AndroidAdventCalendar2012)
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<!-- 2pane -->
<fragment
android:id="@+id/fragment_contact_list"
android:name="daichan4649.androiddesign.multipane.combining.ContactListFragment"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="1" />
<LinearLayout
android:id="@+id/container_contact_detail"
android:layout_width="0dip"
android:layout_height="match_parent"
android:layout_weight="2"
android:gravity="center" >
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment