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