Skip to content

Instantly share code, notes, and snippets.

@derekcsm
Last active August 29, 2015 14:15
Show Gist options
  • Save derekcsm/5d036b05c0eb99c5facb to your computer and use it in GitHub Desktop.
Save derekcsm/5d036b05c0eb99c5facb to your computer and use it in GitHub Desktop.
act_main.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color"
android:orientation="vertical">
<!-- TOOLBAR -->
<include
android:id="@+id/toolbar_actionbar"
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
android:layout_below="@+id/toolbar_actionbar" />
</LinearLayout>
<fragment
android:id="@+id/fragment_drawer"
android:fitsSystemWindows="true"
android:name="com.metalab.flow.ui.fragments.FrNavigationDrawer"
android:layout_width="@dimen/drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
app:layout="@layout/fr_navigation_drawer" />
</android.support.v4.widget.DrawerLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment