Created
May 29, 2015 16:49
-
-
Save pratamawijaya/edb82e11f67325d15d56 to your computer and use it in GitHub Desktop.
navigation_drawer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:id="@+id/drawerLayout" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:fitsSystemWindows="true" | |
| tools:context=".MainActivity"> | |
| <!-- content--> | |
| <RelativeLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <android.support.v7.widget.Toolbar | |
| android:id="@+id/toolbar" | |
| android:layout_width="match_parent" | |
| android:layout_height="?actionBarSize" | |
| android:layout_alignParentTop="true" | |
| android:background="@color/primaryColor" | |
| app:popupTheme="@style/ThemeOverlay.AppCompat.Light" | |
| app:theme="@style/ThemeOverlay.AppCompat.Dark" /> | |
| <android.support.design.widget.FloatingActionButton | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:layout_alignParentBottom="true" | |
| android:layout_alignParentRight="true" | |
| android:layout_marginBottom="10dp" | |
| android:layout_marginRight="10dp" | |
| android:src="@drawable/ic_add" | |
| app:borderWidth="0dp" | |
| app:elevation="5dp" | |
| app:rippleColor="@color/accentColorDark" /> | |
| </RelativeLayout> | |
| <!-- nav drawer--> | |
| <android.support.design.widget.NavigationView | |
| android:id="@+id/navigationView" | |
| android:layout_width="wrap_content" | |
| android:layout_height="match_parent" | |
| android:layout_gravity="start" | |
| android:clickable="true" | |
| android:fitsSystemWindows="true" | |
| app:headerLayout="@layout/nav_header" | |
| app:menu="@menu/drawer_view" /> | |
| </android.support.v4.widget.DrawerLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment