Guest User

activity_main.xml

a guest
May 1st, 2016
37,005
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.45 KB | None | 0 0
  1. <android.support.v4.widget.DrawerLayout
  2.     xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:id="@+id/drawer"
  6.      android:layout_width="match_parent"
  7.     android:layout_height="match_parent"
  8.     android:fitsSystemWindows="true"
  9.      tools:context=".MainActivity">
  10.  
  11.     <LinearLayout
  12.         android:layout_width="match_parent"
  13.         android:layout_height="match_parent"
  14.         android:measureWithLargestChild="false"
  15.         android:orientation="vertical">
  16.  
  17.         <include
  18.             android:id="@+id/toolbar"
  19.             layout="@layout/layout_toolbar" />
  20.         <TextView
  21.             android:layout_width="wrap_content"
  22.             android:layout_height="wrap_content"
  23.             android:textAppearance="?android:attr/textAppearanceLarge"
  24.             android:text="Ini adalah Contoh isi konten dengan widget TextView yang dibungkus oleh Navigation Drawer"
  25.             android:id="@+id/textView" android:layout_gravity="center_horizontal"/>
  26.  
  27.     </LinearLayout>
  28.     <android.support.design.widget.NavigationView
  29.         android:id="@+id/navigation_view"
  30.         android:layout_width="wrap_content"
  31.         android:layout_height="match_parent"
  32.         android:layout_gravity="start"
  33.         app:headerLayout="@layout/layout_header"
  34.         app:menu="@menu/item_navigasi" />
  35. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment