Skip to content

Instantly share code, notes, and snippets.

@jvanz
Created January 14, 2015 14:41
Show Gist options
  • Save jvanz/3cad953710c6c7b67a60 to your computer and use it in GitHub Desktop.
Save jvanz/3cad953710c6c7b67a60 to your computer and use it in GitHub Desktop.
android layout
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/feeds_fragment_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weigth="1"/>
<FrameLayout
android:id="@+id/detail_fragment_container"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weigth="1"/>
</FrameLayout>
<FrameLayout android:id="@+id/left_drawer"
android:layout_width="240dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:divider="@android:color/transparent"
android:dividerHeight="0dp"
android:background="@color/white">
<include layout="@layout/drawer"/>
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment