update
[pub/Android/ownCloud.git] / res / layout / files.xml
index 50bc105..e8f157b 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>\r
-<!-- \r
+<!--\r
   ownCloud Android client application\r
 \r
   Copyright (C) 2012  Bartek Przybylski\r
 \r
   You should have received a copy of the GNU General Public License\r
   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
- -->\r
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+  -->\r
+<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+    android:id="@+id/drawer_layout"\r
     android:layout_width="match_parent"\r
     android:layout_height="match_parent"\r
-    android:background="@color/background_color"\r
-    android:orientation="horizontal"\r
-    android:baselineAligned="false"\r
-    >\r
-\r
-       <FrameLayout \r
-               android:layout_width="0dp"\r
-               android:layout_height="match_parent"\r
-               android:layout_weight="1"\r
-               android:id="@+id/left_fragment_container"\r
-           />\r
-       \r
-       <FrameLayout \r
-               android:layout_width="0dp"\r
-               android:layout_height="match_parent"\r
-               android:layout_weight="2"\r
-               android:id="@+id/right_fragment_container"\r
-           />\r
-       \r
- </LinearLayout>
\ No newline at end of file
+    android:clickable="true" >\r
+\r
+    <!-- The main content view -->\r
+    <LinearLayout\r
+        xmlns:android="http://schemas.android.com/apk/res/android"\r
+        android:layout_width="match_parent"\r
+        android:layout_height="match_parent"\r
+        android:background="@color/background_color"\r
+        android:baselineAligned="false"\r
+        android:orientation="horizontal" >\r
+\r
+        \r
+        <FrameLayout\r
+            android:id="@+id/left_fragment_container"\r
+            android:layout_width="0dp"\r
+            android:layout_height="match_parent"\r
+            android:layout_weight="1" />\r
+\r
+        <FrameLayout\r
+            android:id="@+id/right_fragment_container"\r
+            android:layout_width="0dp"\r
+            android:layout_height="match_parent"\r
+            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
+             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
+\r
+        <ImageView\r
+            android:id="@+id/drawer_userIcon"\r
+            android:layout_width="40dp"\r
+            android:layout_height="40dp"\r
+            android:src="@drawable/abs__ab_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