1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2022 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 xmlns:app="http://schemas.android.com/apk/res-auto" 20 xmlns:tools="http://schemas.android.com/tools" 21 android:id="@+id/home_screen" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent" 24 android:orientation="vertical" 25 tools:context="com.android.healthconnect.testapps.toolbox.ui.HomeFragment"> 26 27 <ImageView 28 android:id="@+id/imageView" 29 android:layout_width="match_parent" 30 android:layout_height="150dp" 31 android:layout_marginTop="40dp" 32 android:src="@mipmap/ic_launcher" /> 33 34 <Button 35 android:id="@+id/launch_health_connect_button" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_marginTop="8dp" 39 android:layout_gravity="center_horizontal" 40 android:minWidth="250dp" 41 android:text="@string/launch_health_connect" /> 42 43 <Button 44 android:id="@+id/request_permissions_button" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 android:layout_marginTop="8dp" 48 android:layout_gravity="center_horizontal" 49 android:minWidth="250dp" 50 android:text="@string/request_permissions" /> 51 52 <Button 53 android:id="@+id/request_route_permissions_button" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:layout_marginTop="8dp" 57 android:layout_gravity="center_horizontal" 58 android:minWidth="250dp" 59 android:text="@string/request_route_permissions" /> 60 61 <Button 62 android:id="@+id/insert_update_data_button" 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content" 65 android:layout_marginTop="8dp" 66 android:layout_gravity="center_horizontal" 67 android:minWidth="250dp" 68 android:text="@string/insert_update_data" /> 69 70 <Button 71 android:id="@+id/seed_random_data_button" 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:layout_marginTop="8dp" 75 android:layout_gravity="center_horizontal" 76 android:minWidth="250dp" 77 android:text="@string/seed_random_data" /> 78 79 <Button 80 android:id="@+id/seed_performance_insert_data_button" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content" 83 android:layout_marginTop="8dp" 84 android:layout_gravity="center_horizontal" 85 android:minWidth="250dp" 86 android:text="@string/seed_performance_insert_data" /> 87 88<!-- <Button--> 89<!-- android:id="@+id/seed_performance_insert_data_button_in_parallel"--> 90<!-- android:layout_width="wrap_content"--> 91<!-- android:layout_height="wrap_content"--> 92<!-- android:layout_marginTop="8dp"--> 93<!-- android:layout_gravity="center_horizontal"--> 94<!-- android:minWidth="250dp"--> 95<!-- android:text="@string/seed_performance_insert_data_in_parallel" />--> 96 97 <Button 98 android:id="@+id/seed_performance_read_data_button" 99 android:layout_width="wrap_content" 100 android:layout_height="wrap_content" 101 android:layout_marginTop="8dp" 102 android:layout_gravity="center_horizontal" 103 android:minWidth="250dp" 104 android:text="@string/seed_performance_read_data" /> 105 106 <Button 107 android:id="@+id/toggle_permission_intent_filter" 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:layout_marginTop="8dp" 111 android:layout_gravity="center_horizontal" 112 android:minWidth="250dp" 113 android:text="@string/toggle_permission_intent_filter" /> 114 115 116 117</LinearLayout>