1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2010 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:id="@+id/active_layout" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical"> 23 24 <androidx.core.widget.NestedScrollView 25 android:layout_width="match_parent" 26 android:layout_height="0dip" 27 android:layout_weight="1.0" 28 android:scrollbarStyle="outsideOverlay" 29 android:gravity="top"> 30 <LinearLayout 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="vertical"> 34 35 <LinearLayout 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:paddingStart="16dip" 39 android:paddingEnd="16dip" 40 android:orientation="horizontal" 41 android:layout_marginTop="16dip"> 42 43 <ImageView android:id="@+id/admin_icon" 44 android:layout_width="@android:dimen/app_icon_size" 45 android:layout_height="@android:dimen/app_icon_size" 46 android:layout_marginEnd="16dip" 47 android:layout_gravity="center_vertical" 48 android:scaleType="fitCenter" 49 android:contentDescription="@null" /> 50 51 <TextView android:id="@+id/admin_name" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:layout_weight="1" 55 android:layout_marginBottom="2dip" 56 android:layout_gravity="center_vertical" 57 android:textAppearance="?android:attr/textAppearanceMedium" 58 android:textStyle="bold" 59 android:singleLine="true" 60 android:ellipsize="marquee" /> 61 </LinearLayout> 62 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:paddingStart="16dip" 67 android:paddingEnd="16dip" 68 android:orientation="vertical"> 69 70 <TextView android:id="@+id/profile_owner_warning" 71 android:layout_width="fill_parent" 72 android:layout_height="wrap_content" 73 android:padding="0dp" 74 android:visibility="gone" 75 android:text="@string/adding_profile_owner_warning" /> 76 77 <TextView android:id="@+id/admin_description" 78 android:layout_width="fill_parent" 79 android:layout_height="0dip" 80 android:layout_weight="0" 81 android:padding="0dip" /> 82 83 <LinearLayout 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:orientation="horizontal" 87 android:gravity="center_vertical"> 88 89 <ImageView 90 android:id="@+id/add_msg_expander" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" 93 android:importantForAccessibility="no" 94 android:gravity="center_vertical" 95 android:contentDescription="@null" /> 96 97 <TextView 98 android:id="@+id/add_msg" 99 android:layout_width="fill_parent" 100 android:layout_height="wrap_content" 101 android:gravity="center_vertical" 102 android:padding="10dip" /> 103 </LinearLayout> 104 105 <TextView android:id="@+id/admin_warning" 106 android:layout_width="fill_parent" 107 android:layout_height="wrap_content" 108 android:textAppearance="?android:attr/textAppearanceMedium" 109 android:layout_weight="1" 110 android:padding="10dip" /> 111 112 <LinearLayout android:id="@+id/admin_policies" 113 android:layout_width="match_parent" 114 android:layout_height="wrap_content" 115 android:layout_weight="1" 116 android:orientation="vertical" 117 android:paddingStart="16dip" 118 android:paddingEnd="12dip" /> 119 120 <TextView android:id="@+id/admin_support_message" 121 android:layout_width="match_parent" 122 android:layout_height="wrap_content" 123 android:textAppearance="?android:attr/textAppearanceMedium" 124 android:autoLink="email|phone|web" 125 android:padding="10dip" /> 126 </LinearLayout> 127 128 <LinearLayout android:id="@+id/buttonPanel" 129 style="?android:attr/buttonBarStyle" 130 android:layout_width="match_parent" 131 android:layout_height="wrap_content" 132 android:orientation="vertical" 133 android:divider="?android:attr/dividerHorizontal" 134 android:showDividers="beginning|middle|end"> 135 <LinearLayout 136 android:id="@+id/restricted_action" 137 android:layout_width="match_parent" 138 android:layout_height="wrap_content" 139 android:orientation="horizontal" 140 android:gravity="center_vertical"> 141 <Button android:id="@+id/action_button" 142 android:layout_width="match_parent" 143 android:layout_height="wrap_content" 144 android:layout_gravity="start" 145 android:gravity="start|center_vertical" 146 android:maxLines="2" 147 style="?android:attr/buttonBarButtonStyle" 148 android:clickable="false" 149 android:focusable="false" 150 android:textAllCaps="false" 151 /> 152 <include layout="@layout/restricted_icon" /> 153 </LinearLayout> 154 <Button android:id="@+id/cancel_button" 155 android:layout_width="match_parent" 156 android:layout_gravity="end" 157 android:gravity="start|center_vertical" 158 android:maxLines="2" 159 android:text="@string/cancel" 160 style="?android:attr/buttonBarButtonStyle" 161 android:textAllCaps="false" 162 android:layout_height="wrap_content" /> 163 <Button android:id="@+id/uninstall_button" 164 android:layout_width="match_parent" 165 android:layout_gravity="end" 166 android:gravity="start|center_vertical" 167 android:maxLines="2" 168 android:text="@string/uninstall_device_admin" 169 style="?android:attr/buttonBarButtonStyle" 170 android:textAllCaps="false" 171 android:layout_height="wrap_content" 172 android:visibility="gone" /> 173 </LinearLayout> 174 175 </LinearLayout> 176 </androidx.core.widget.NestedScrollView> 177</LinearLayout> 178