OSDN Git Service

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