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="true" 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 <LinearLayout 54 android:id="@+id/action_button_layout" 55 android:layout_width="match_parent" 56 android:layout_height="wrap_content" 57 android:gravity="center_horizontal" 58 android:orientation="vertical"> 59 60 <Button 61 android:id="@+id/start_screenshare_button" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_marginLeft="20dip" 65 android:layout_marginRight="20dip" 66 android:layout_gravity="center_horizontal" 67 android:text="@string/notif_hiding_start_screen_recording" /> 68 69 <Button 70 android:id="@+id/send_notification_button" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginLeft="20dip" 74 android:layout_marginRight="20dip" 75 android:layout_gravity="center_horizontal" 76 android:text="@string/notif_hiding_send_notification" /> 77 78 <!-- Pass / fail buttons for the test step --> 79 <LinearLayout 80 android:id="@+id/pass_fail_button_layout" 81 android:layout_width="match_parent" 82 android:layout_height="wrap_content" 83 android:gravity="center_horizontal" 84 android:orientation="horizontal"> 85 86 <Button 87 android:id="@+id/test_step_passed" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:text="@string/pass_button_text"/> 91 92 <Button 93 android:id="@+id/test_step_failed" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:text="@string/fail_button_text"/> 97 98 </LinearLayout> 99 100 </LinearLayout> 101 102 </LinearLayout> 103 104 </ScrollView> 105 106 <include 107 android:layout_width="match_parent" 108 android:layout_height="wrap_content" 109 android:layout_weight="0" 110 layout="@layout/pass_fail_buttons" /> 111 112</LinearLayout> 113