Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[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 <merge xmlns:android="http://schemas.android.com/apk/res/android">
20 <RelativeLayout
21 android:id="@+id/left_drawer"
22 android:layout_width="240dp"
23 android:layout_height="match_parent"
24 android:layout_gravity="start"
25 android:gravity="center"
26 android:orientation="vertical"
27 android:fitsSystemWindows="true"
28 android:background="@color/background_color"
29 >
30
31 <!--TODO re-enable when "Accounts" is available in Navigation Drawer-->
32 <!--<LinearLayout-->
33 <!--android:layout_width="match_parent"-->
34 <!--android:layout_height="wrap_content"-->
35 <!--android:layout_margin="5dp">-->
36
37 <!--<ImageView-->
38 <!--android:id="@+id/drawer_userIcon"-->
39 <!--android:layout_width="40dp"-->
40 <!--android:layout_height="40dp"-->
41 <!--android:src="@drawable/abc_ab_bottom_solid_dark_holo" />-->
42
43 <!--<TextView-->
44 <!--android:id="@+id/drawer_username"-->
45 <!--android:layout_width="wrap_content"-->
46 <!--android:layout_height="wrap_content"-->
47 <!--android:layout_gravity="center_vertical"-->
48 <!--android:layout_marginLeft="5dp"-->
49 <!--android:layout_marginStart="5dp"-->
50 <!--android:textAppearance="?android:attr/textAppearanceLarge" />-->
51
52 <!--</LinearLayout>-->
53
54 <!--<TextView-->
55 <!--android:layout_width="fill_parent"-->
56 <!--android:layout_height="2dip"-->
57 <!--android:background="@color/list_item_lastmod_and_filesize_text" />-->
58
59 <ListView
60 android:id="@+id/drawer_list"
61 android:choiceMode="singleChoice"
62 android:layout_width="fill_parent"
63 android:layout_height="match_parent"
64 android:background="@color/background_color"
65 android:divider="@color/list_divider_background"
66 android:dividerHeight="1dp"
67 android:paddingTop="100dp" />
68
69 <LinearLayout
70 android:layout_width="fill_parent"
71 android:layout_height="100dp"
72 android:paddingTop="@dimen/standard_padding"
73 android:paddingBottom="@dimen/standard_padding"
74 android:background="@color/owncloud_blue_accent">
75
76 <ImageView
77 android:id="@+id/itemIcon"
78 android:layout_width="24sp"
79 android:layout_height="24sp"
80 android:layout_marginLeft="@dimen/standard_padding"
81 android:layout_marginBottom="3dp"
82 android:layout_gravity="bottom"
83 android:src="@drawable/ic_account_circle"
84 />
85
86 <TextView
87 android:id="@+id/drawer_username"
88 android:layout_width="wrap_content"
89 android:layout_height="wrap_content"
90 android:layout_gravity="bottom"
91 android:gravity="bottom"
92 android:orientation="vertical"
93 android:text="@string/app_name"
94 android:textColor="#FFF"
95 android:paddingLeft="22dp"
96 android:paddingRight="@dimen/standard_padding"
97 android:textSize="24sp"
98 android:ellipsize="end"
99 android:singleLine="true"
100 />
101 </LinearLayout>
102 </RelativeLayout>
103 </merge>