1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3/* 4** Copyright 2022, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License"); 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:layout_width="380dp" 22 android:layout_height="match_parent" 23 android:clipToPadding="false" 24 android:orientation="vertical"> 25 26 <ScrollView 27 android:layout_width="match_parent" 28 android:layout_height="0dp" 29 android:layout_weight="1"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:orientation="vertical" 35 android:paddingLeft="24dp" 36 android:paddingRight="24dp" 37 android:paddingTop="24dp" 38 android:paddingBottom="24dp" 39 android:gravity="center"> 40 41 <ImageView 42 android:id="@+id/log_access_image_view" 43 android:layout_width="32dp" 44 android:layout_height="32dp" 45 android:layout_marginBottom="16dp" 46 android:src="@drawable/ic_doc_document" 47 tools:layout_editor_absoluteX="148dp" 48 tools:layout_editor_absoluteY="35dp" 49 android:gravity="center" /> 50 51 <TextView 52 android:id="@+id/log_access_dialog_title" 53 android:layout_height="wrap_content" 54 android:layout_width="wrap_content" 55 android:layout_marginBottom="32dp" 56 android:text="@string/log_access_confirmation_title" 57 android:textAppearance="@style/AllowLogAccess" 58 android:textColor="?android:attr/textColorPrimary" 59 android:gravity="center" /> 60 61 <TextView 62 android:id="@+id/log_access_dialog_body" 63 android:layout_height="wrap_content" 64 android:layout_width="wrap_content" 65 android:layout_marginBottom="40dp" 66 android:text="@string/log_access_confirmation_body" 67 android:textAppearance="@style/PrimaryAllowLogAccess" 68 android:textColor="?android:attr/textColorPrimary" 69 android:gravity="center" /> 70 </LinearLayout> 71 </ScrollView> 72 73 <LinearLayout 74 android:orientation="vertical" 75 android:layout_width="match_parent" 76 android:layout_height="wrap_content" 77 android:paddingLeft="24dp" 78 android:paddingRight="24dp" 79 android:paddingTop="24dp" 80 android:paddingBottom="24dp"> 81 82 <Button 83 android:id="@+id/log_access_dialog_allow_button" 84 android:layout_width="match_parent" 85 android:layout_height="wrap_content" 86 android:text="@string/log_access_confirmation_allow" 87 style="?permissionGrantButtonTopStyle" 88 android:textAppearance="@style/PermissionGrantButtonTextAppearance" 89 android:layout_marginBottom="5dp" 90 android:clipToOutline="true" 91 android:gravity="center" /> 92 93 <Button 94 android:id="@+id/log_access_dialog_deny_button" 95 android:layout_width="match_parent" 96 android:layout_height="wrap_content" 97 android:text="@string/log_access_confirmation_deny" 98 style="?permissionGrantButtonBottomStyle" 99 android:textAppearance="@style/PermissionGrantButtonTextAppearance" 100 android:clipToOutline="true" 101 android:gravity="center" /> 102 </LinearLayout> 103</LinearLayout>