Merge branch 'navigationDrawer_update' of github.com:owncloud/android into navigation...
[pub/Android/ownCloud.git] / res / layout / files.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012 Bartek Przybylski
6 Copyright (C) 2015 ownCloud Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2,
10 as published by the Free Software Foundation.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 -->
20 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@+id/drawer_layout"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 android:clickable="true" >
25
26 <!-- The main content view -->
27 <LinearLayout
28 xmlns:android="http://schemas.android.com/apk/res/android"
29 android:layout_width="match_parent"
30 android:layout_height="match_parent"
31 android:background="@color/background_color"
32 android:baselineAligned="false"
33 android:orientation="horizontal" >
34
35
36 <FrameLayout
37 android:id="@+id/left_fragment_container"
38 android:layout_width="0dp"
39 android:layout_height="match_parent"
40 android:layout_weight="1" />
41
42 <FrameLayout
43 android:id="@+id/right_fragment_container"
44 android:layout_width="0dp"
45 android:layout_height="match_parent"
46 android:layout_weight="2" />
47 </LinearLayout>
48
49
50 <LinearLayout
51 xmlns:android="http://schemas.android.com/apk/res/android"
52 android:id="@+id/left_drawer"
53 android:layout_width="240dp"
54 android:layout_height="match_parent"
55 android:layout_gravity="start"
56 android:background="@color/background_color"
57 android:baselineAligned="false"
58 android:clickable="true"
59 android:orientation="vertical">
60
61 <LinearLayout
62 android:layout_width="match_parent"
63 android:layout_height="wrap_content"
64 android:layout_margin="5dp">
65
66 <ImageView
67 android:id="@+id/drawer_userIcon"
68 android:layout_width="40dp"
69 android:layout_height="40dp"
70 android:src="@drawable/abc_ab_bottom_solid_dark_holo" />
71
72 <TextView
73 android:id="@+id/drawer_username"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:layout_gravity="center_vertical"
77 android:layout_marginLeft="5dp"
78 android:layout_marginStart="5dp"
79 android:textAppearance="?android:attr/textAppearanceLarge" />
80
81 </LinearLayout>
82
83 <TextView
84 android:layout_width="fill_parent"
85 android:layout_height="2dip"
86 android:background="@color/list_item_lastmod_and_filesize_text" />
87
88 <ListView
89 android:id="@+id/drawer_list"
90 android:layout_width="fill_parent"
91 android:layout_height="match_parent"
92 android:background="@color/background_color"
93 android:choiceMode="singleChoice"
94 />
95 </LinearLayout>
96 </android.support.v4.widget.DrawerLayout>