blob: 3555775e08671c360664119e903d9f3f17b3317c [file] [log] [blame]
Adrian Roos5954ff52014-03-24 21:21:51 +01001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2014 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16
17<LinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 android:layout_width="match_parent"
20 android:layout_height="wrap_content"
21 android:minHeight="?android:attr/listPreferredItemHeight"
22 android:gravity="center_vertical">
Adrian Roos2c22d6d2014-07-18 13:42:01 +020023
Adrian Roos5954ff52014-03-24 21:21:51 +010024 <LinearLayout
25 android:id="@+id/clickable"
26 android:layout_width="wrap_content"
27 android:layout_height="match_parent"
28 android:layout_weight="1"
Adrian Roos2c22d6d2014-07-18 13:42:01 +020029 android:paddingStart="?android:attr/listPreferredItemPaddingStart"
30 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
Adrian Roos5954ff52014-03-24 21:21:51 +010031 android:gravity="center_vertical"
32 android:clickable="true"
33 android:focusable="true"
34 android:background="?android:attr/selectableItemBackground">
Adrian Roos2c22d6d2014-07-18 13:42:01 +020035
Adrian Roos5954ff52014-03-24 21:21:51 +010036 <CheckBox
37 xmlns:android="http://schemas.android.com/apk/res/android"
38 android:id="@+id/checkbox"
39 android:layout_width="wrap_content"
40 android:layout_height="match_parent"
41 android:layout_gravity="center"
42 android:focusable="false"
43 android:clickable="false"/>
Adrian Roos2c22d6d2014-07-18 13:42:01 +020044
Adrian Roos5954ff52014-03-24 21:21:51 +010045 <RelativeLayout
46 android:layout_width="wrap_content"
47 android:layout_height="wrap_content"
48 android:layout_marginEnd="6dip"
49 android:layout_marginTop="6dip"
50 android:layout_marginBottom="6dip"
51 android:layout_weight="1">
Adrian Roos2c22d6d2014-07-18 13:42:01 +020052
Adrian Roos5954ff52014-03-24 21:21:51 +010053 <TextView
54 android:id="@+id/name"
55 android:layout_width="wrap_content"
56 android:layout_height="wrap_content"
57 android:singleLine="true"
58 android:textAppearance="?android:attr/textAppearanceMedium"
59 android:ellipsize="marquee"
60 android:fadingEdge="horizontal"/>
Adrian Roos2c22d6d2014-07-18 13:42:01 +020061
Adrian Roos5954ff52014-03-24 21:21:51 +010062 <TextView
63 android:id="@+id/description"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_below="@android:id/title"
67 android:layout_alignStart="@android:id/title"
68 android:paddingBottom="3dip"
69 android:visibility="gone"
70 android:textAppearance="?android:attr/textAppearanceSmall"
71 android:textSize="13sp"
72 android:textColor="?android:attr/textColorSecondary"
73 android:focusable="false"
74 android:maxLines="4"/>
Adrian Roos2c22d6d2014-07-18 13:42:01 +020075
Adrian Roos5954ff52014-03-24 21:21:51 +010076 </RelativeLayout>
Adrian Roos2c22d6d2014-07-18 13:42:01 +020077
Adrian Roos5954ff52014-03-24 21:21:51 +010078 </LinearLayout>
Adrian Roos2c22d6d2014-07-18 13:42:01 +020079
Adrian Roos5954ff52014-03-24 21:21:51 +010080</LinearLayout>