1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 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 <ScrollView 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 android:id="@+id/add_msg_expander" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:gravity="center_vertical" 93 android:contentDescription="@null" /> 94 95 <TextView android:id="@+id/add_msg" 96 android:layout_width="fill_parent" 97 android:layout_height="wrap_content" 98 android:gravity="center_vertical" 99 android:padding="10dip" /> 100 </LinearLayout> 101 102 <TextView android:id="@+id/admin_warning" 103 android:layout_width="fill_parent" 104 android:layout_height="wrap_content" 105 android:textAppearance="?android:attr/textAppearanceMedium" 106 android:layout_weight="1" 107 android:padding="10dip" /> 108 109 <LinearLayout android:id="@+id/admin_policies" 110 android:layout_width="match_parent" 111 android:layout_height="wrap_content" 112 android:layout_weight="1" 113 android:orientation="vertical" 114 android:paddingStart="16dip" 115 android:paddingEnd="12dip" /> 116 117 <TextView android:id="@+id/admin_support_message" 118 android:layout_width="match_parent" 119 android:layout_height="wrap_content" 120 android:textAppearance="?android:attr/textAppearanceMedium" 121 android:autoLink="email|phone|web" 122 android:padding="10dip" /> 123 </LinearLayout> 124 125 <LinearLayout android:id="@+id/buttonPanel" 126 style="?android:attr/buttonBarStyle" 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content" 129 android:orientation="vertical" 130 android:divider="?android:attr/dividerHorizontal" 131 android:showDividers="beginning|middle|end"> 132 <LinearLayout 133 android:id="@+id/restricted_action" 134 android:layout_width="wrap_content" 135 android:layout_height="wrap_content" 136 android:orientation="horizontal" 137 android:gravity="center_vertical"> 138 <Button android:id="@+id/action_button" 139 android:layout_width="match_parent" 140 android:layout_height="wrap_content" 141 android:layout_gravity="start" 142 android:gravity="start|center_vertical" 143 android:maxLines="2" 144 style="?android:attr/buttonBarButtonStyle" 145 android:clickable="false" 146 android:focusable="false" 147 android:textAllCaps="false" 148 /> 149 <include layout="@layout/restricted_icon" /> 150 </LinearLayout> 151 <Button android:id="@+id/cancel_button" 152 android:layout_width="match_parent" 153 android:layout_gravity="end" 154 android:gravity="start|center_vertical" 155 android:maxLines="2" 156 android:text="@string/cancel" 157 style="?android:attr/buttonBarButtonStyle" 158 android:textAllCaps="false" 159 android:layout_height="wrap_content" /> 160 <Button android:id="@+id/uninstall_button" 161 android:layout_width="match_parent" 162 android:layout_gravity="end" 163 android:gravity="start|center_vertical" 164 android:maxLines="2" 165 android:text="@string/uninstall_device_admin" 166 style="?android:attr/buttonBarButtonStyle" 167 android:textAllCaps="false" 168 android:layout_height="wrap_content" 169 android:visibility="gone" /> 170 </LinearLayout> 171 172 </LinearLayout> 173 </ScrollView> 174</LinearLayout> 175