1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright 2024 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 ~ https://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 --> 18 19<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content"> 22 23 <LinearLayout 24 android:id="@+id/exercise_routes_permission_dialog" 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:orientation="vertical" 28 android:paddingHorizontal="@dimen/spacing_large" 29 android:paddingTop="@dimen/spacing_normal" 30 android:paddingBottom="@dimen/spacing_large"> 31 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:gravity="?attr/alertDialogTitleGravity" 36 android:orientation="vertical"> 37 38 <ImageView 39 android:id="@+id/dialog_icon" 40 android:layout_width="@dimen/app_icon_size" 41 android:layout_height="@dimen/app_icon_size" 42 android:layout_marginTop="@dimen/spacing_large" 43 android:layout_marginBottom="@dimen/spacing_normal" /> 44 45 <TextView 46 android:id="@+id/dialog_title" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:maxLines="4" 50 android:paddingBottom="@dimen/spacing_small" 51 android:singleLine="false" 52 android:text="@string/route_permissions_label" 53 android:textAlignment="?attr/alertDialogTitleTextAlignment" 54 android:textAppearance="?attr/textAppearanceHeadline4" /> 55 </LinearLayout> 56 57 58 <TextView 59 android:id="@+id/dialog_message" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:paddingBottom="@dimen/spacing_normal" 63 android:textAppearance="?attr/textAppearanceSummary" /> 64 65 <RadioGroup 66 android:id="@+id/radio_group_route_permission" 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content"> 69 70 <RadioButton 71 android:id="@+id/radio_button_always_allow" 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:minHeight="?android:attr/listPreferredItemHeight" 75 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 76 android:paddingEnd="0dp" 77 android:text="@string/route_permissions_always_allow" 78 android:textAppearance="?attr/textAppearanceSummary" 79 android:textColor="?android:attr/textColorPrimary" /> 80 81 <RadioButton 82 android:id="@+id/radio_button_ask" 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content" 85 android:minHeight="?android:attr/listPreferredItemHeight" 86 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 87 android:paddingEnd="0dp" 88 android:text="@string/route_permissions_ask" 89 android:textAppearance="?attr/textAppearanceSummary" 90 android:textColor="?android:attr/textColorPrimary" /> 91 92 <RadioButton 93 android:id="@+id/radio_button_revoke" 94 android:layout_width="match_parent" 95 android:layout_height="wrap_content" 96 android:minHeight="?android:attr/listPreferredItemHeight" 97 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 98 android:paddingEnd="0dp" 99 android:text="@string/route_permissions_deny" 100 android:textAppearance="?attr/textAppearanceSummary" 101 android:textColor="?android:attr/textColorPrimary" /> 102 103 </RadioGroup> 104 </LinearLayout> 105 106</ScrollView>