Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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/drawer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:context=".MainActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:measureWithLargestChild="false"
- android:orientation="vertical">
- <include
- android:id="@+id/toolbar"
- layout="@layout/layout_toolbar" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceLarge"
- android:text="Ini adalah Contoh isi konten dengan widget TextView yang dibungkus oleh Navigation Drawer"
- android:id="@+id/textView" android:layout_gravity="center_horizontal"/>
- </LinearLayout>
- <android.support.design.widget.NavigationView
- android:id="@+id/navigation_view"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- app:headerLayout="@layout/layout_header"
- app:menu="@menu/item_navigasi" />
- </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment