Merge pull request #453 from owncloud/improve_action_bar_pr_392_with_develop
[pub/Android/ownCloud.git] / res / layout-v11 / activity_row.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2014 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/list_item"
22 android:layout_width="match_parent"
23 android:layout_height="48dp"
24 android:paddingStart="16dip"
25 android:paddingEnd="16dip"
26 android:paddingRight="16dip"
27 android:paddingLeft="16dip"
28 android:minWidth="196dip"
29 android:background="?android:attr/activatedBackgroundIndicator"
30 android:orientation="vertical" >
31
32 <LinearLayout
33 android:layout_width="wrap_content"
34 android:layout_height="match_parent"
35 android:duplicateParentState="true" >
36
37 <ImageView
38 android:id="@+id/icon"
39 android:layout_width="40dip"
40 android:layout_height="40dip"
41 android:layout_gravity="center_vertical"
42 android:layout_marginEnd="8dip"
43 android:layout_marginRight="8dip"
44 android:duplicateParentState="true" />
45
46 <TextView
47 android:id="@+id/title"
48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_gravity="center_vertical"
51 android:textAppearance="?android:attr/textAppearanceLargePopupMenu"
52 android:duplicateParentState="true"
53 android:singleLine="true"
54 android:ellipsize="marquee"
55 android:fadingEdge="horizontal" />
56
57 </LinearLayout>
58
59 </LinearLayout>