1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright (C) 2022 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<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:app="http://schemas.android.com/apk/res-auto" 18 xmlns:tools="http://schemas.android.com/tools" 19 android:id="@+id/home_screen" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 android:orientation="vertical" 23 tools:context="com.android.healthconnect.testapps.toolbox.ui.HomeFragment"> 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:orientation="vertical"> 29 30 <ImageView 31 android:id="@+id/imageView" 32 android:layout_width="match_parent" 33 android:layout_height="150dp" 34 android:layout_marginTop="40dp" 35 android:src="@mipmap/ic_launcher" /> 36 37 <Button 38 android:id="@+id/launch_health_connect_button" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_gravity="center_horizontal" 42 android:layout_marginTop="8dp" 43 android:minWidth="250dp" 44 android:text="@string/launch_health_connect" /> 45 46 <Button 47 android:id="@+id/permissions_request_button" 48 android:layout_width="wrap_content" 49 android:layout_height="wrap_content" 50 android:layout_gravity="center_horizontal" 51 android:layout_margin="8dp" 52 android:minWidth="250dp" 53 android:text="@string/permissions_request"/> 54 55 <Button 56 android:id="@+id/request_route_button" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_gravity="center_horizontal" 60 android:layout_marginTop="8dp" 61 android:minWidth="250dp" 62 android:text="@string/request_route" /> 63 64 <Button 65 android:id="@+id/insert_update_data_button" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content" 68 android:layout_gravity="center_horizontal" 69 android:layout_marginTop="8dp" 70 android:minWidth="250dp" 71 android:text="@string/insert_update_data" /> 72 73 <Button 74 android:id="@+id/seed_random_data_button" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:layout_gravity="center_horizontal" 78 android:layout_marginTop="8dp" 79 android:minWidth="250dp" 80 android:text="@string/seed_random_data" /> 81 82 <Button 83 android:id="@+id/seed_all_data_button" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_gravity="center_horizontal" 87 android:layout_marginTop="8dp" 88 android:minWidth="250dp" 89 android:text="Seed All Data" /> 90 91 <Button 92 android:id="@+id/seed_performance_insert_data_button" 93 android:layout_width="wrap_content" 94 android:layout_height="wrap_content" 95 android:layout_gravity="center_horizontal" 96 android:layout_marginTop="8dp" 97 android:minWidth="250dp" 98 android:text="@string/seed_performance_insert_data" /> 99 100 <!-- <Button--> 101 <!-- android:id="@+id/seed_performance_insert_data_button_in_parallel"--> 102 <!-- android:layout_width="wrap_content"--> 103 <!-- android:layout_height="wrap_content"--> 104 <!-- android:layout_marginTop="8dp"--> 105 <!-- android:layout_gravity="center_horizontal"--> 106 <!-- android:minWidth="250dp"--> 107 <!-- android:text="@string/seed_performance_insert_data_in_parallel" />--> 108 109 <Button 110 android:id="@+id/seed_performance_read_data_button" 111 android:layout_width="wrap_content" 112 android:layout_height="wrap_content" 113 android:layout_gravity="center_horizontal" 114 android:layout_marginTop="8dp" 115 android:minWidth="250dp" 116 android:text="@string/seed_performance_read_data" /> 117 118 <Button 119 android:id="@+id/toggle_permission_intent_filter" 120 android:layout_width="wrap_content" 121 android:layout_height="wrap_content" 122 android:layout_gravity="center_horizontal" 123 android:layout_marginTop="8dp" 124 android:minWidth="250dp" 125 android:text="@string/toggle_permission_intent_filter" /> 126 127 128 <Button 129 android:id="@+id/read_data_in_background_button" 130 android:layout_width="wrap_content" 131 android:layout_height="wrap_content" 132 android:layout_gravity="center_horizontal" 133 android:layout_marginTop="8dp" 134 android:minWidth="250dp" 135 android:text="@string/read_data_in_background" /> 136 137 <Button 138 android:id="@+id/read_data_in_foreground_button" 139 android:layout_width="wrap_content" 140 android:layout_height="wrap_content" 141 android:layout_gravity="center_horizontal" 142 android:layout_marginTop="8dp" 143 android:minWidth="250dp" 144 android:text="@string/read_data_in_foreground" /> 145 146 <Button 147 android:id="@+id/phr_options_button" 148 android:layout_width="wrap_content" 149 android:layout_height="wrap_content" 150 android:layout_gravity="center_horizontal" 151 android:layout_marginTop="8dp" 152 android:minWidth="250dp" 153 android:text="@string/phr_options" /> 154 155 <Button 156 android:id="@+id/exit_process_button" 157 android:layout_width="wrap_content" 158 android:layout_height="wrap_content" 159 android:layout_gravity="center_horizontal" 160 android:layout_marginTop="8dp" 161 android:minWidth="250dp" 162 android:text="@string/exit_process" /> 163 164 165 <Button 166 android:id="@+id/new_screens_button" 167 android:layout_width="wrap_content" 168 android:layout_height="wrap_content" 169 android:layout_gravity="center_horizontal" 170 android:layout_marginTop="8dp" 171 android:minWidth="250dp" 172 android:text="@string/new_screens" /> 173 174 </LinearLayout> 175 176</ScrollView>