1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 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  ~      http://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<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/request_permissions"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:filterTouchesWhenObscured="true"
21    android:orientation="vertical"
22    android:paddingBottom="@dimen/spacing_small"
23    android:paddingTop="@dimen/spacing_xlarge">
24
25    <FrameLayout
26        android:id="@+id/preference_container"
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:layout_alignParentTop="true"
30        android:layout_above="@+id/action_container" />
31
32    <LinearLayout
33        android:id="@+id/action_container"
34        android:layout_width="match_parent"
35        android:layout_height="wrap_content"
36        android:paddingHorizontal="@dimen/spacing_large"
37        android:paddingVertical="@dimen/spacing_normal"
38        android:orientation="horizontal"
39        android:layout_alignParentBottom="true">
40
41        <FrameLayout
42            android:layout_width="0dp"
43            android:layout_height="match_parent"
44            android:layout_weight="1">
45            <Button
46                android:id="@+id/dont_allow"
47                style="@style/Widget.HealthConnect.DialogButton.Outline"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:layout_gravity="start|center_vertical"
51                android:gravity="center"
52                android:maxLines="2"
53                android:text="@string/request_permissions_dont_allow" />
54        </FrameLayout>
55
56        <FrameLayout
57            android:layout_width="0dp"
58            android:layout_height="match_parent"
59            android:layout_weight="1">
60            <Button
61                android:id="@+id/allow"
62                style="@style/Widget.HealthConnect.DialogButton.Outline"
63                android:layout_width="wrap_content"
64                android:layout_height="wrap_content"
65                android:layout_gravity="end|center_vertical"
66                android:gravity="center"
67                android:maxLines="2"
68                android:enabled="false"
69                android:text="@string/request_permissions_allow" />
70        </FrameLayout>
71
72    </LinearLayout>
73
74</RelativeLayout>