Merge pull request #1141 from owncloud/559_longpress_filename
[pub/Android/ownCloud.git] / res / layout / drawer_list_item.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
20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
21 android:id="@+id/itemLayout"
22 android:layout_width="fill_parent"
23 android:layout_height="wrap_content"
24 android:layout_alignParentLeft="true"
25 android:orientation="horizontal"
26 android:background="@color/background_color"
27 android:layout_marginTop="16dp"
28 android:layout_marginBottom="16dp"
29 android:minHeight="?android:attr/listPreferredItemHeight">
30
31 <ImageView
32 android:id="@+id/itemIcon"
33 android:layout_width="24sp"
34 android:layout_height="24sp"
35 android:layout_marginLeft="16sp"
36 android:layout_gravity="center_vertical"
37 />
38
39 <TextView xmlns:android="http://schemas.android.com/apk/res/android"
40 android:id="@+id/itemTitle"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:paddingLeft="22dp"
44 android:paddingRight="16dp"
45 android:textColor="@color/drawerMenuTextColor"
46 android:text="@string/app_name"
47 android:textStyle="normal"
48 android:layout_gravity="center_vertical"
49 android:textSize="14sp"
50 />
51 </LinearLayout>
52