1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2024 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 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:fitsSystemWindows="@bool/fit_system_windows" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 android:gravity="center_horizontal" 24 style="@style/RootLayoutPadding"> 25 26 <ScrollView 27 android:layout_width="match_parent" 28 android:layout_height="0dp" 29 android:layout_weight="1" 30 android:orientation="vertical"> 31 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:gravity="center_horizontal" 36 android:orientation="vertical" > 37 38 <TextView 39 android:id="@+id/test_title" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 style="@style/InstructionsFont"/> 43 44 <!-- The padding here matches what InstructionsFont has so that these look 45 nice together--> 46 <TextView 47 android:id="@+id/test_instructions" 48 android:layout_width="match_parent" 49 android:layout_height="wrap_content" 50 android:padding="10dp" 51 style="@style/InstructionsSmallFont"/> 52 53 <TextView 54 android:id="@+id/test_warning" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:padding="10dp" 58 style="@style/InstructionsFont"/> 59 60 <LinearLayout 61 android:id="@+id/action_button_layout" 62 android:layout_width="match_parent" 63 android:layout_height="wrap_content" 64 android:gravity="center_horizontal" 65 android:orientation="vertical"> 66 67 <Button 68 android:id="@+id/start_screenshare_button" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_marginLeft="20dip" 72 android:layout_marginRight="20dip" 73 android:layout_gravity="center_horizontal" 74 android:text="@string/notif_hiding_start_screen_recording" /> 75 76 <Button 77 android:id="@+id/send_notification_button" 78 android:layout_width="wrap_content" 79 android:layout_height="wrap_content" 80 android:layout_marginLeft="20dip" 81 android:layout_marginRight="20dip" 82 android:layout_gravity="center_horizontal" 83 android:text="@string/notif_hiding_send_notification" /> 84 85 <Button 86 android:id="@+id/save_screen_capture_button" 87 android:layout_width="wrap_content" 88 android:layout_height="wrap_content" 89 android:layout_marginLeft="20dip" 90 android:layout_marginRight="20dip" 91 android:layout_gravity="center_horizontal" 92 android:text="@string/notif_hiding_save_screen_capture" /> 93 94 <!-- Pass / fail buttons for the test step --> 95 <LinearLayout 96 android:id="@+id/pass_fail_button_layout" 97 android:layout_width="match_parent" 98 android:layout_height="wrap_content" 99 android:gravity="center_horizontal" 100 android:orientation="horizontal"> 101 102 <Button 103 android:id="@+id/test_step_passed" 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:text="@string/pass_button_text"/> 107 108 <Button 109 android:id="@+id/test_step_failed" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:text="@string/fail_button_text"/> 113 114 </LinearLayout> 115 116 </LinearLayout> 117 118 <TextView 119 android:id="@+id/test_screen_capture_path" 120 android:layout_width="match_parent" 121 android:layout_height="wrap_content" 122 android:padding="10dp" 123 style="@style/InstructionsSmallFont"/> 124 125 </LinearLayout> 126 127 </ScrollView> 128 129 <include 130 android:layout_width="match_parent" 131 android:layout_height="wrap_content" 132 android:layout_weight="0" 133 layout="@layout/pass_fail_buttons" /> 134 135</LinearLayout> 136