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:orientation="vertical"
23    android:focusable="true"
24    android:clickable="true" >
25
26    <LinearLayout
27        android:layout_width="match_parent"
28        android:layout_height="match_parent"
29        android:layout_weight="1"
30        android:id="@+id/app_restrictions_pref"
31        android:gravity="center_vertical"
32        android:paddingStart="?android:attr/listPreferredItemPaddingStart"
33        android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
34        android:background="?android:attr/selectableItemBackground" >
35        <LinearLayout
36            android:layout_width="wrap_content"
37            android:layout_height="match_parent"
38            android:gravity="center"
39            android:minWidth="@*android:dimen/preference_icon_minWidth"
40            android:orientation="horizontal">
41            <ImageView
42                android:id="@android:id/icon"
43                android:layout_width="48dp"
44                android:layout_height="48dp"
45                android:layout_gravity="center"
46                android:minWidth="48dp"
47                android:scaleType="centerInside"
48                android:layout_marginEnd="@*android:dimen/preference_item_padding_inner"
49                 />
50        </LinearLayout>
51        <RelativeLayout
52            android:layout_width="wrap_content"
53            android:layout_height="wrap_content"
54            android:layout_marginEnd="6dip"
55            android:layout_marginTop="6dip"
56            android:layout_marginBottom="6dip"
57            android:layout_weight="1">
58            <TextView
59                android:id="@android:id/title"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:singleLine="true"
63                android:textAppearance="?android:attr/textAppearanceMedium"
64                android:ellipsize="marquee"
65                android:fadingEdge="horizontal"/>
66            <TextView
67                android:id="@android:id/summary"
68                android:layout_width="wrap_content"
69                android:layout_height="wrap_content"
70                android:layout_below="@android:id/title"
71                android:layout_alignStart="@android:id/title"
72                android:paddingBottom="3dip"
73                android:textAppearance="?android:attr/textAppearanceSmall"
74                android:textSize="13sp"
75                android:textColor="?android:attr/textColorSecondary"
76                android:focusable="false"
77                android:text="@string/user_summary_restricted_profile"
78                android:maxLines="4" />
79        </RelativeLayout>
80        <ImageView
81                android:id="@+id/delete"
82                android:layout_width="wrap_content"
83                android:layout_height="fill_parent"
84                android:paddingStart="16dip"
85                android:paddingEnd="16dip"
86                android:src="@drawable/ic_delete"
87                android:contentDescription="@string/user_delete_user_description"
88                android:layout_gravity="center"
89                android:background="?android:attr/selectableItemBackground" />
90    </LinearLayout>
91    <View android:layout_width="match_parent"
92          android:layout_height="2dp"
93          android:background="@color/divider_color" />
94</LinearLayout>
95