• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?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">
23
24    <LinearLayout
25            android:id="@+id/clickable"
26            android:layout_width="wrap_content"
27            android:layout_height="match_parent"
28            android:layout_weight="1"
29            android:paddingStart="?android:attr/listPreferredItemPaddingStart"
30            android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
31            android:gravity="center_vertical"
32            android:clickable="true"
33            android:focusable="true"
34            android:background="?android:attr/selectableItemBackground">
35
36        <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"/>
44
45        <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">
52
53            <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"/>
61
62            <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"/>
75
76        </RelativeLayout>
77
78    </LinearLayout>
79
80</LinearLayout>
81