7bff7a52d6f1aecf7c4bdcd1a757e21a835943a0
[pub/Android/ownCloud.git] / res / layout / drawer.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2015 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2,
9 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout
20 xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@+id/left_drawer"
22 android:layout_width="240dp"
23 android:layout_height="match_parent"
24 android:layout_gravity="start"
25 android:background="@color/background_color"
26 android:baselineAligned="false"
27 android:clickable="true"
28 android:orientation="vertical">
29
30 <LinearLayout
31 android:layout_width="match_parent"
32 android:layout_height="wrap_content"
33 android:layout_margin="5dp">
34
35 <ImageView
36 android:id="@+id/drawer_userIcon"
37 android:layout_width="40dp"
38 android:layout_height="40dp"
39 android:src="@drawable/abc_ab_bottom_solid_dark_holo" />
40
41 <TextView
42 android:id="@+id/drawer_username"
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_gravity="center_vertical"
46 android:layout_marginLeft="5dp"
47 android:layout_marginStart="5dp"
48 android:textAppearance="?android:attr/textAppearanceLarge" />
49
50 </LinearLayout>
51
52 <TextView
53 android:layout_width="fill_parent"
54 android:layout_height="2dip"
55 android:background="@color/list_item_lastmod_and_filesize_text" />
56
57 <ListView
58 android:id="@+id/drawer_list"
59 android:layout_width="fill_parent"
60 android:layout_height="match_parent"
61 android:background="@color/background_color"
62 android:choiceMode="singleChoice"
63 />
64 </LinearLayout>