1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2023 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 18 android:layout_width="match_parent" 19 android:layout_height="match_parent" 20 android:filterTouchesWhenObscured="true" 21 android:orientation="vertical"> 22 23 <LinearLayout 24 android:layout_width="match_parent" 25 android:layout_height="match_parent" 26 android:orientation="vertical" 27 android:paddingHorizontal="@dimen/spacing_large" 28 android:paddingBottom="@dimen/spacing_large" 29 android:paddingTop="@dimen/spacing_normal"> 30 31 <LinearLayout 32 android:id="@+id/more_info" 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:orientation="horizontal" 36 android:layout_gravity="center_vertical" 37 android:gravity="center_vertical" 38 android:layout_marginBottom="@dimen/spacing_normal" 39 android:paddingHorizontal="12dp" 40 android:paddingVertical="@dimen/spacing_normal" 41 android:background="@drawable/filter_chip_background"> 42 43 <ImageView 44 android:layout_width="@dimen/route_request_icon_size" 45 android:layout_height="@dimen/route_request_icon_size" 46 android:background="?attr/privacyPolicyIcon" 47 android:importantForAccessibility="no"/> 48 49 <TextView 50 android:layout_width="0dp" 51 android:layout_height="wrap_content" 52 android:layout_weight="1" 53 android:layout_gravity="center_vertical" 54 android:layout_marginHorizontal="12dp" 55 android:textAppearance="?attr/textAppearanceRouteRequest" 56 android:text="@string/request_route_disclaimer_notice" /> 57 58 <ImageView 59 android:layout_width="@dimen/route_request_icon_size" 60 android:layout_height="@dimen/route_request_icon_size" 61 android:background="?attr/seeAllIcon" 62 android:importantForAccessibility="no"/> 63 </LinearLayout> 64 65 <LinearLayout 66 android:layout_width="match_parent" 67 android:layout_height="0dp" 68 android:orientation="horizontal" 69 android:layout_gravity="center_vertical" 70 android:gravity="center_vertical" 71 android:layout_marginTop="@dimen/spacing_normal" 72 android:layout_marginBottom="@dimen/spacing_normal" 73 android:layout_weight="1"> 74 75 <com.android.healthconnect.controller.shared.RoundView 76 android:layout_width="@dimen/round_map_size" 77 android:layout_height="@dimen/round_map_size" 78 android:layout_marginEnd="@dimen/spacing_normal"> 79 80 <com.android.healthconnect.controller.shared.map.MapView 81 android:layout_width="match_parent" 82 android:layout_height="match_parent" 83 android:id="@+id/map_view"/> 84 </com.android.healthconnect.controller.shared.RoundView> 85 86 <LinearLayout 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="center_vertical" 90 android:gravity="center_vertical" 91 android:orientation="vertical"> 92 93 <TextView 94 android:id="@+id/session_title" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:layout_marginBottom="@dimen/spacing_small" 98 android:textAppearance="?attr/textAppearanceHeadline6"/> 99 100 <TextView 101 android:id="@+id/date_app" 102 android:textAppearance="?attr/textAppearanceSummary" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content"/> 105 </LinearLayout> 106 </LinearLayout> 107 108 <LinearLayout 109 android:paddingTop="@dimen/spacing_small" 110 style="@style/PermissionGrantButtonListMaterial3"> 111 112 <Button 113 android:id="@+id/route_allow_button" 114 android:text="@string/request_route_allow" 115 style="@style/PermissionGrantButtonTop" /> 116 117 <Button 118 android:id="@+id/route_allow_all_button" 119 android:text="@string/request_route_allow_all" 120 style="@style/PermissionGrantButtonMid" /> 121 122 <Button 123 android:id="@+id/route_dont_allow_button" 124 android:text="@string/request_route_dont_allow" 125 style="@style/PermissionGrantButtonBottom" /> 126 </LinearLayout> 127 </LinearLayout> 128 129</ScrollView> 130