1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright (C) 2023 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:orientation="vertical"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:gravity="center_horizontal"
21    android:paddingTop="@dimen/spacing_large">
22
23    <LinearLayout
24        android:layout_width="match_parent"
25        android:layout_height="0dp"
26        android:layout_weight="1"
27        android:gravity="start"
28        android:layout_marginHorizontal="@dimen/spacing_large"
29        android:orientation="vertical">
30
31        <ImageView
32            android:id="@+id/update_icon"
33            android:src="?attr/moreSpaceNeededIcon"
34            android:layout_width="@dimen/app_header_icon_size"
35            android:layout_height="@dimen/app_header_icon_size"
36            android:layout_marginBottom="@dimen/spacing_normal"
37            android:contentDescription="@string/migration_more_space_needed_screen_title" />
38
39        <TextView
40            android:layout_width="match_parent"
41            android:layout_height="wrap_content"
42            android:text="@string/migration_more_space_needed_screen_title"
43            android:textAppearance="?attr/textAppearanceHeadline2"
44            android:paddingBottom="@dimen/spacing_normal" />
45
46        <TextView
47            android:layout_width="match_parent"
48            android:layout_height="wrap_content"
49            android:id="@+id/space_needed"
50            android:text="@string/migration_more_space_needed_screen_details"
51            android:textAppearance="?attr/textAppearanceSummaryLarge"/>
52
53    </LinearLayout>
54
55    <LinearLayout
56        android:layout_width="match_parent"
57        android:layout_height="wrap_content"
58        android:layout_marginVertical="@dimen/spacing_large"
59        android:layout_marginEnd="@dimen/spacing_large"
60        android:layout_marginStart="@dimen/spacing_normal"
61        android:baselineAligned="false"
62        android:orientation="horizontal">
63
64        <FrameLayout
65            android:layout_width="0dp"
66            android:layout_height="match_parent"
67            android:layout_weight="1">
68
69            <Button
70                android:id="@+id/try_again_button"
71                android:layout_width="wrap_content"
72                android:layout_height="wrap_content"
73                android:layout_gravity="start|center_vertical"
74                android:gravity="center"
75                android:maxLines="2"
76                android:text="@string/try_again_button"
77                style="@style/Widget.HealthConnect.Button.Borderless" />
78        </FrameLayout>
79
80        <FrameLayout
81            android:layout_width="0dp"
82            android:layout_height="match_parent"
83            android:layout_weight="1">
84
85            <Button
86                android:id="@+id/free_up_space_button"
87                android:layout_width="wrap_content"
88                android:layout_height="wrap_content"
89                android:layout_gravity="end|center_vertical"
90                android:text="@string/free_up_space_button"
91                style="@style/Widget.HealthConnect.DialogButton.Full" />
92
93        </FrameLayout>
94    </LinearLayout>
95
96</LinearLayout>