1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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 xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:minHeight="?android:attr/listPreferredItemHeight"
21    android:gravity="center_vertical"
22    android:paddingStart="@*android:dimen/preference_item_padding_side">
23
24    <LinearLayout
25        android:layout_width="wrap_content"
26        android:layout_height="match_parent"
27        android:layout_weight="1"
28        android:id="@+id/home_app_pref"
29        android:focusable="true"
30        android:clickable="true"
31        android:gravity="center_vertical"
32        android:background="?android:attr/selectableItemBackground" >
33
34            <RadioButton
35                android:id="@+id/home_radio"
36                android:layout_width="wrap_content"
37                android:layout_height="match_parent"
38                android:layout_marginStart="10dip"
39                android:layout_marginEnd="4dip"
40                android:layout_gravity="center_vertical"
41                android:orientation="vertical"
42                android:clickable="false"
43                android:focusable="false" />
44
45            <ImageView
46                android:id="@+android:id/icon"
47                android:layout_width="48dp"
48                android:layout_height="48dp"
49                android:layout_gravity="center"
50                android:minWidth="48dp"
51                android:scaleType="centerInside"
52                android:layout_marginEnd="@*android:dimen/preference_item_padding_inner" />
53
54            <LinearLayout
55                android:layout_width="wrap_content"
56                android:layout_height="match_parent"
57                android:layout_weight="1"
58                android:focusable="true"
59                android:clickable="true"
60                android:gravity="center_vertical"
61                android:orientation="vertical">
62
63                    <TextView
64                        android:id="@+android:id/title"
65                        android:layout_width="wrap_content"
66                        android:layout_height="wrap_content"
67                        android:singleLine="true"
68                        android:textAppearance="?android:attr/textAppearanceMedium"
69                        android:ellipsize="end" />
70
71                    <TextView
72                        android:id="@+android:id/summary"
73                        android:layout_width="wrap_content"
74                        android:layout_height="wrap_content"
75                        android:textAppearance="?android:attr/textAppearanceSmall" />
76
77            </LinearLayout>
78
79    </LinearLayout>
80
81    <View
82        android:id="@+id/home_divider"
83        android:layout_width="2dip"
84        android:layout_height="match_parent"
85        android:layout_marginTop="5dip"
86        android:layout_marginBottom="5dip"
87        android:background="@android:drawable/divider_horizontal_dark" />
88
89    <ImageView
90        android:id="@+id/home_app_uninstall"
91        android:layout_width="wrap_content"
92        android:layout_height="fill_parent"
93        android:paddingStart="12dip"
94        android:paddingEnd="12dp"
95        android:src="@drawable/ic_menu_delete"
96        android:contentDescription="@string/home_app_uninstall_button"
97        android:layout_gravity="center"
98        android:clickable="true"
99        android:focusable="true"
100        android:background="?android:attr/selectableItemBackground" />
101
102</LinearLayout>
103