1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2015 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:id="@+id/permission_lockdown_activity" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="match_parent"> 21 22 <ScrollView 23 android:layout_width="match_parent" 24 android:layout_height="0dp" 25 android:layout_weight="1" 26 android:paddingTop="4dp"> 27 <TextView 28 android:id="@+id/test_instructions" 29 android:layout_width="match_parent" 30 android:layout_height="wrap_content" 31 android:text="@string/device_profile_owner_permission_lockdown_test_instructions" 32 android:textSize="18sp" 33 android:padding="10dp" /> 34 </ScrollView> 35 36 <ScrollView 37 android:layout_width="match_parent" 38 android:layout_height="0dp" 39 android:layout_weight="1"> 40 <LinearLayout 41 android:orientation="vertical" 42 android:layout_width="match_parent" 43 android:layout_height="match_parent" 44 android:layout_gravity="center_vertical" 45 android:paddingStart="10dp" 46 android:paddingEnd="10dp"> 47 48 <LinearLayout 49 android:orientation="horizontal" 50 android:layout_width="match_parent" 51 android:layout_height="wrap_content" 52 android:paddingTop="4dp"> 53 <ImageView 54 android:id="@+id/package_icon" 55 android:layout_width="48dp" 56 android:layout_height="48dp" 57 android:scaleType="centerInside" 58 android:gravity="center" /> 59 <TextView 60 android:id="@+id/package_name" 61 android:layout_width="wrap_content" 62 android:layout_height="match_parent" 63 android:gravity="center_vertical" 64 android:paddingLeft="10dp" 65 android:textSize="16sp" 66 android:singleLine="true" 67 android:ellipsize="end" /> 68 </LinearLayout> 69 70 <TextView 71 android:id="@+id/permission_name" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:textSize="16sp" 75 android:paddingTop="4dp" /> 76 77 <RadioGroup 78 android:id="@+id/permission_group" 79 android:layout_width="wrap_content" 80 android:layout_height="wrap_content" 81 android:orientation="vertical" 82 android:paddingTop="4dp"> 83 <RadioButton 84 android:id="@+id/permission_allow" 85 android:text="@string/permission_allow" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" /> 88 <RadioButton 89 android:id="@+id/permission_default" 90 android:text="@string/permission_default" 91 android:layout_width="wrap_content" 92 android:layout_height="wrap_content" /> 93 <RadioButton 94 android:id="@+id/permission_deny" 95 android:text="@string/permission_deny" 96 android:layout_width="wrap_content" 97 android:layout_height="wrap_content" /> 98 </RadioGroup> 99 100 <Button 101 android:id="@+id/open_settings" 102 android:layout_width="wrap_content" 103 android:layout_height="wrap_content" 104 android:layout_gravity="center_horizontal" 105 android:text="@string/open_settings_button_label" 106 android:onClick="openSettings" /> 107 </LinearLayout> 108 </ScrollView> 109 110</LinearLayout>