117 lines
4.2 KiB
XML
117 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2022 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/home_screen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
tools:context="com.android.healthconnect.testapps.toolbox.ui.HomeFragment">
|
|
|
|
<ImageView
|
|
android:id="@+id/imageView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="150dp"
|
|
android:layout_marginTop="40dp"
|
|
android:src="@mipmap/ic_launcher" />
|
|
|
|
<Button
|
|
android:id="@+id/launch_health_connect_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/launch_health_connect" />
|
|
|
|
<Button
|
|
android:id="@+id/request_permissions_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/request_permissions" />
|
|
|
|
<Button
|
|
android:id="@+id/request_route_permissions_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/request_route_permissions" />
|
|
|
|
<Button
|
|
android:id="@+id/insert_update_data_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/insert_update_data" />
|
|
|
|
<Button
|
|
android:id="@+id/seed_random_data_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/seed_random_data" />
|
|
|
|
<Button
|
|
android:id="@+id/seed_performance_insert_data_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/seed_performance_insert_data" />
|
|
|
|
<!-- <Button-->
|
|
<!-- android:id="@+id/seed_performance_insert_data_button_in_parallel"-->
|
|
<!-- android:layout_width="wrap_content"-->
|
|
<!-- android:layout_height="wrap_content"-->
|
|
<!-- android:layout_marginTop="8dp"-->
|
|
<!-- android:layout_gravity="center_horizontal"-->
|
|
<!-- android:minWidth="250dp"-->
|
|
<!-- android:text="@string/seed_performance_insert_data_in_parallel" />-->
|
|
|
|
<Button
|
|
android:id="@+id/seed_performance_read_data_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/seed_performance_read_data" />
|
|
|
|
<Button
|
|
android:id="@+id/toggle_permission_intent_filter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:minWidth="250dp"
|
|
android:text="@string/toggle_permission_intent_filter" />
|
|
|
|
|
|
|
|
</LinearLayout> |