Add NavigationDrawer to image preview
[pub/Android/ownCloud.git] / res / layout / files.xml
index 5f11f06..268ee51 100644 (file)
             android:layout_weight="2" />\r
     </LinearLayout>\r
 \r
-\r
-    <LinearLayout\r
-        xmlns:android="http://schemas.android.com/apk/res/android"\r
-        android:id="@+id/left_drawer"\r
+    <include\r
+        layout="@layout/drawer"\r
         android:layout_width="240dp"\r
         android:layout_height="match_parent"\r
-        android:layout_gravity="start"\r
-        android:background="@color/background_color"\r
-        android:baselineAligned="false"\r
-        android:clickable="true"\r
-        android:orientation="vertical">\r
-\r
-        <LinearLayout\r
-            android:layout_width="match_parent"\r
-            android:layout_height="wrap_content"\r
-            android:layout_margin="5dp">\r
+        android:layout_gravity="start"/>\r
 \r
-            <ImageView\r
-                android:id="@+id/drawer_userIcon"\r
-                android:layout_width="40dp"\r
-                android:layout_height="40dp"\r
-                android:src="@drawable/abc_ab_bottom_solid_dark_holo" />\r
-\r
-            <TextView\r
-                android:id="@+id/drawer_username"\r
-                android:layout_width="wrap_content"\r
-                android:layout_height="wrap_content"\r
-                android:layout_gravity="center_vertical"\r
-                android:layout_marginLeft="5dp"\r
-                android:layout_marginStart="5dp"\r
-                android:textAppearance="?android:attr/textAppearanceLarge" />\r
-\r
-        </LinearLayout>\r
-\r
-        <TextView\r
-            android:layout_width="fill_parent"\r
-            android:layout_height="2dip"\r
-            android:background="@color/list_item_lastmod_and_filesize_text" />\r
-\r
-        <ListView\r
-            android:id="@+id/drawer_list"\r
-            android:layout_width="fill_parent"\r
-            android:layout_height="match_parent"\r
-            android:background="@color/background_color"\r
-            android:choiceMode="singleChoice"\r
-            />\r
-    </LinearLayout>\r
 </android.support.v4.widget.DrawerLayout>
\ No newline at end of file