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 <!-- TODO (b/275684458) extract linear layout to its own file --> 29 <LinearLayout 30 android:layout_width="match_parent" 31 android:layout_height="0dp" 32 android:gravity="start" 33 android:layout_marginHorizontal="@dimen/spacing_large" 34 android:orientation="vertical"> 35 36 <ImageView 37 android:id="@+id/update_icon" 38 android:src="?attr/updateNeededIcon" 39 android:layout_width="@dimen/app_header_icon_size" 40 android:layout_height="@dimen/app_header_icon_size" 41 android:layout_marginBottom="@dimen/spacing_normal" 42 android:contentDescription="@string/update_button" /> 43 44 <TextView 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:text="@string/migration_update_needed_screen_title" 48 android:textAppearance="?attr/textAppearanceHeadline2" 49 android:paddingBottom="@dimen/spacing_normal" 50 /> 51 52 <TextView 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:text="@string/migration_update_needed_screen_details" 56 android:textAppearance="?attr/textAppearanceSummaryLarge" 57 android:paddingBottom="@dimen/spacing_large"/> 58 59 <TextView 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:text="@string/migration_module_update_needed_action" 63 android:textAppearance="?attr/textAppearanceSummaryLarge" 64 android:paddingBottom="@dimen/spacing_small"/> 65 66 </LinearLayout> 67 68 </ScrollView> 69 70 <TextView 71 android:layout_width="match_parent" 72 android:layout_height="wrap_content" 73 android:layout_marginHorizontal="@dimen/spacing_large" 74 android:text="@string/migration_module_update_needed_restart" 75 android:textAppearance="?attr/textAppearanceSubheader2" 76 /> 77 78 <LinearLayout 79 android:layout_width="match_parent" 80 android:layout_height="wrap_content" 81 android:layout_marginVertical="@dimen/spacing_large" 82 android:layout_marginEnd="@dimen/spacing_large" 83 android:layout_marginStart="@dimen/spacing_normal" 84 android:baselineAligned="false" 85 android:orientation="horizontal"> 86 87 <FrameLayout 88 android:layout_width="0dp" 89 android:layout_height="match_parent" 90 android:layout_weight="1"> 91 92 <Button 93 android:id="@+id/cancel_button" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:layout_gravity="start|center_vertical" 97 android:gravity="center" 98 android:maxLines="2" 99 android:text="@android:string/cancel" 100 style="@style/Widget.HealthConnect.Button.Borderless" /> 101 </FrameLayout> 102 103 <FrameLayout 104 android:layout_width="0dp" 105 android:layout_height="match_parent" 106 android:layout_weight="1"> 107 108 <Button 109 android:id="@+id/update_button" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:layout_gravity="end|center_vertical" 113 android:text="@string/update_button" 114 style="@style/Widget.HealthConnect.DialogButton.Full" /> 115 116 </FrameLayout> 117 </LinearLayout> 118 119</LinearLayout>