xisberto

Drawer navigation duplo

Feb 5th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.67 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout
  3.    xmlns:android="http://schemas.android.com/apk/res/android"
  4.    android:id="@+id/drawer_layout"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent">
  7.     <!-- The main content view -->
  8.     <FrameLayout
  9.        android:id="@+id/content_frame"
  10.        android:layout_width="match_parent"
  11.        android:layout_height="match_parent"/>
  12.     <!-- The navigation drawer -->
  13.     <LinearLayout
  14.        android:orientation="vertical"
  15.        android:id="@+id/drawer_navigation"
  16.        android:layout_height="match_parent"
  17.        android:layout_width="240dp"
  18.        style="?android:buttonBarStyle"
  19.        android:divider="?android:dividerVertical"
  20.        android:background="#FFF"
  21.        android:layout_gravity="start">
  22.  
  23.         <Button
  24.            android:id="@+id/btn_slide"
  25.            style="?android:buttonBarButtonStyle"
  26.            android:gravity="left|center_vertical"
  27.            android:layout_height="wrap_content"
  28.            android:layout_width="match_parent"
  29.            android:text="Slide + Animation"/>
  30.  
  31.         <Button
  32.            android:id="@+id/btn_presentation"
  33.            style="?android:buttonBarButtonStyle"
  34.            android:gravity="left|center_vertical"
  35.            android:layout_height="wrap_content"
  36.            android:layout_width="match_parent"
  37.            android:text="Presentation"/>
  38.  
  39.         <Button
  40.            android:id="@+id/btn_dialog_on_tablet"
  41.            style="?android:buttonBarButtonStyle"
  42.            android:gravity="left|center_vertical"
  43.            android:layout_height="wrap_content"
  44.            android:layout_width="match_parent"
  45.            android:text="Dialog on Tablets"/>
  46.  
  47.         <Button
  48.            android:id="@+id/btn_hidden_list"
  49.            style="?android:buttonBarButtonStyle"
  50.            android:gravity="left|center_vertical"
  51.            android:layout_height="wrap_content"
  52.            android:layout_width="match_parent"
  53.            android:text="Hidden list" />
  54.     </LinearLayout>
  55.  
  56.     <FrameLayout
  57.        android:id="@+id/drawer_notifications"
  58.        android:layout_width="240dp"
  59.        android:layout_height="match_parent"
  60.        android:background="#FFF"
  61.        android:layout_gravity="end">
  62.  
  63.         <TextView
  64.            android:layout_height="wrap_content"
  65.            android:layout_width="match_parent"
  66.            android:text="When connected, your notifications will appear here"
  67.            android:gravity="center_horizontal"
  68.            android:layout_gravity="top|center_horizontal"
  69.            />
  70.     </FrameLayout>
  71. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment