249dd7ddf61968bdc565b3dda9e35b6b085dd37b
[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 android:fitsSystemWindows="true">
30
31 <LinearLayout
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_margin="5dp">
35
36 <ImageView
37 android:id="@+id/drawer_userIcon"
38 android:layout_width="40dp"
39 android:layout_height="40dp"
40 android:src="@drawable/abc_ab_bottom_solid_dark_holo" />
41
42 <TextView
43 android:id="@+id/drawer_username"
44 android:layout_width="wrap_content"
45 android:layout_height="wrap_content"
46 android:layout_gravity="center_vertical"
47 android:layout_marginLeft="5dp"
48 android:layout_marginStart="5dp"
49 android:textAppearance="?android:attr/textAppearanceLarge" />
50
51 </LinearLayout>
52
53 <TextView
54 android:layout_width="fill_parent"
55 android:layout_height="2dip"
56 android:background="@color/list_item_lastmod_and_filesize_text" />
57
58 <ListView
59 android:id="@+id/drawer_list"
60 android:layout_width="fill_parent"
61 android:layout_height="match_parent"
62 android:background="@color/background_color"
63 android:choiceMode="singleChoice"
64 />
65 </LinearLayout>