| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2015 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/permission_lockdown_activity" |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| <ScrollView |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1" |
| android:paddingTop="4dp"> |
| <TextView |
| android:id="@+id/test_instructions" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="@string/device_profile_owner_permission_lockdown_test_instructions" |
| android:textSize="18sp" |
| android:padding="10dp" /> |
| </ScrollView> |
| |
| <ScrollView |
| android:layout_width="match_parent" |
| android:layout_height="0dp" |
| android:layout_weight="1"> |
| <LinearLayout |
| android:orientation="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_gravity="center_vertical" |
| android:paddingStart="10dp" |
| android:paddingEnd="10dp"> |
| |
| <LinearLayout |
| android:orientation="horizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="4dp"> |
| <ImageView |
| android:id="@+id/package_icon" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:scaleType="centerInside" |
| android:gravity="center" /> |
| <TextView |
| android:id="@+id/package_name" |
| android:layout_width="wrap_content" |
| android:layout_height="match_parent" |
| android:gravity="center_vertical" |
| android:paddingLeft="10dp" |
| android:textSize="16sp" |
| android:singleLine="true" |
| android:ellipsize="end" /> |
| </LinearLayout> |
| |
| <TextView |
| android:id="@+id/permission_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="16sp" |
| android:paddingTop="4dp" /> |
| |
| <RadioGroup |
| android:id="@+id/permission_group" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:orientation="vertical" |
| android:paddingTop="4dp"> |
| <RadioButton |
| android:id="@+id/permission_allow" |
| android:text="@string/permission_allow" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| <RadioButton |
| android:id="@+id/permission_default" |
| android:text="@string/permission_default" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| <RadioButton |
| android:id="@+id/permission_deny" |
| android:text="@string/permission_deny" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" /> |
| </RadioGroup> |
| |
| <Button |
| android:id="@+id/open_settings" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_horizontal" |
| android:text="@string/open_settings_button_label" |
| android:onClick="openSettings" /> |
| </LinearLayout> |
| </ScrollView> |
| |
| </LinearLayout> |