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 <ScrollView 24 android:layout_width="match_parent" 25 android:layout_height="0dp" 26 android:layout_weight="1"> 27 28 <LinearLayout 29 android:layout_width="match_parent" 30 android:layout_height="0dp" 31 android:gravity="start" 32 android:layout_marginHorizontal="@dimen/spacing_large" 33 android:orientation="vertical"> 34 35 <ImageView 36 android:id="@+id/update_icon" 37 android:src="?attr/healthConnectIcon" 38 android:layout_width="@dimen/app_header_icon_size" 39 android:layout_height="@dimen/app_header_icon_size" 40 android:layout_marginBottom="@dimen/spacing_normal" 41 android:contentDescription="@string/app_label" /> 42 43 <TextView 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:text="@string/migration_update_needed_screen_title" 47 android:textAppearance="?attr/textAppearanceHeadline2" 48 android:paddingBottom="@dimen/spacing_normal" /> 49 50 <TextView 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:text="@string/migration_update_needed_screen_details" 54 android:textAppearance="?attr/textAppearanceSummaryLarge" 55 android:paddingBottom="@dimen/spacing_large"/> 56 57 <TextView 58 android:layout_width="match_parent" 59 android:layout_height="wrap_content" 60 android:text="@string/migration_app_update_needed_action" 61 android:textAppearance="?attr/textAppearanceSummaryLarge" 62 android:paddingBottom="@dimen/spacing_small" 63 /> 64 65 </LinearLayout> 66 67 </ScrollView> 68 69 70 71 <LinearLayout 72 android:layout_width="match_parent" 73 android:layout_height="wrap_content" 74 android:layout_marginVertical="@dimen/spacing_large" 75 android:layout_marginEnd="@dimen/spacing_large" 76 android:layout_marginStart="@dimen/spacing_normal" 77 android:baselineAligned="false" 78 android:orientation="horizontal"> 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/cancel_button" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_gravity="start|center_vertical" 90 android:gravity="center" 91 android:maxLines="2" 92 android:text="@android:string/cancel" 93 style="@style/Widget.HealthConnect.Button.Borderless" /> 94 </FrameLayout> 95 96 <FrameLayout 97 android:layout_width="0dp" 98 android:layout_height="match_parent" 99 android:layout_weight="1"> 100 101 <Button 102 android:id="@+id/update_button" 103 android:layout_width="wrap_content" 104 android:layout_height="wrap_content" 105 android:layout_gravity="end|center_vertical" 106 android:text="@string/update_button" 107 style="@style/Widget.HealthConnect.DialogButton.Full" /> 108 109 </FrameLayout> 110 </LinearLayout> 111 112</LinearLayout>