• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2025 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="wrap_content"
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/warning_expressive_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:backgroundTint="@color/settingslib_materialColorPrimary"
48                android:importantForAccessibility="no"/>
49
50            <TextView
51                android:layout_width="0dp"
52                android:layout_height="wrap_content"
53                android:layout_weight="1"
54                android:layout_gravity="center_vertical"
55                android:layout_marginHorizontal="12dp"
56                android:textAppearance="@style/TextAppearance.HealthConnect.Expressive.RouteRequestWarning"
57                android:text="@string/request_route_disclaimer_notice" />
58
59            <ImageView
60                android:layout_width="@dimen/route_request_icon_size"
61                android:layout_height="@dimen/route_request_icon_size"
62                android:background="?attr/seeAllIcon"
63                android:backgroundTint="@color/settingslib_materialColorPrimary"
64                android:importantForAccessibility="no"/>
65        </LinearLayout>
66
67        <LinearLayout
68            android:layout_width="match_parent"
69            android:layout_height="0dp"
70            android:orientation="horizontal"
71            android:layout_gravity="center_vertical"
72            android:gravity="center_vertical"
73            android:layout_marginTop="@dimen/spacing_normal"
74            android:layout_marginBottom="@dimen/spacing_normal"
75            android:layout_weight="1">
76
77            <com.android.healthconnect.controller.shared.RoundView
78                android:layout_width="@dimen/round_map_size"
79                android:layout_height="@dimen/round_map_size"
80                android:layout_marginEnd="@dimen/spacing_normal">
81
82                <com.android.healthconnect.controller.shared.map.MapView
83                    android:layout_width="match_parent"
84                    android:layout_height="match_parent"
85                    android:id="@+id/map_view"/>
86            </com.android.healthconnect.controller.shared.RoundView>
87
88            <LinearLayout
89                android:layout_width="wrap_content"
90                android:layout_height="wrap_content"
91                android:layout_gravity="center_vertical"
92                android:gravity="center_vertical"
93                android:orientation="vertical">
94
95                <TextView
96                    android:id="@+id/session_title"
97                    android:layout_width="wrap_content"
98                    android:layout_height="wrap_content"
99                    style="@style/TextAppearance.HealthConnect.Expressive.PreferenceTitle"/>
100
101                <TextView
102                    android:id="@+id/date_app"
103                    android:layout_width="wrap_content"
104                    android:layout_height="wrap_content"
105                    style="@style/TextAppearance.HealthConnect.Expressive.PreferenceSummary"/>
106            </LinearLayout>
107        </LinearLayout>
108
109        <LinearLayout
110            android:paddingTop="@dimen/spacing_small"
111            style="@style/PermissionGrantButtonListMaterial3">
112
113            <com.google.android.material.button.MaterialButton
114                android:id="@+id/route_allow_button"
115                android:text="@string/request_route_allow"
116                style="@style/PermissionGrantButton.Expressive.Full" />
117
118            <com.google.android.material.button.MaterialButton
119                android:id="@+id/route_allow_all_button"
120                android:text="@string/request_route_allow_all"
121                style="@style/PermissionGrantButton.Expressive.Outline" />
122
123            <com.google.android.material.button.MaterialButton
124                android:id="@+id/route_dont_allow_button"
125                android:text="@string/request_route_dont_allow"
126                style="@style/PermissionGrantButton.Expressive.Outline" />
127        </LinearLayout>
128    </LinearLayout>
129
130</ScrollView>
131