1<!-- 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 17<navigation xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 xmlns:tools="http://schemas.android.com/tools" 20 app:startDestination="@+id/home_screen"> 21 22 <fragment 23 android:id="@+id/home_screen" 24 android:name="com.android.healthconnect.testapps.toolbox.ui.HomeFragment" 25 android:label="fragment_title_screen" 26 tools:layout="@layout/fragment_home"> 27 <action 28 android:id="@+id/action_homeFragment_to_categoryList" 29 app:destination="@id/categories_list_screen" /> 30 <action 31 android:id="@+id/action_homeFragment_to_routeRequest" 32 app:destination="@id/route_request_screen" /> 33 <action 34 android:id="@+id/action_homeFragment_to_readDataInBackground" 35 app:destination="@id/read_data_in_background_screen" /> 36 <action 37 android:id="@+id/action_homeFragment_to_readDataInForeground" 38 app:destination="@id/read_data_in_foreground_screen" /> 39 <action 40 android:id="@+id/action_homeFragment_to_phrOptions" 41 app:destination="@id/phr_options_screen" /> 42 </fragment> 43 44 <fragment 45 android:id="@+id/categories_list_screen" 46 android:name="com.android.healthconnect.testapps.toolbox.ui.CategoryListFragment" 47 android:label="fragment_category_list_screen" 48 tools:layout="@layout/fragment_list_screen"> 49 <action 50 android:id="@+id/action_categoryList_to_dataTypeList" 51 app:destination="@id/data_type_list_screen" /> 52 </fragment> 53 54 <fragment 55 android:id="@+id/data_type_list_screen" 56 android:name="com.android.healthconnect.testapps.toolbox.ui.DataTypeListFragment" 57 android:label="fragment_data_type_list_screen" 58 tools:layout="@layout/fragment_list_screen"> 59 <action 60 android:id="@+id/action_dataTypeList_to_insertRecord" 61 app:destination="@id/record_entry_screen" /> 62 <argument 63 android:name="category" 64 app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthDataCategory" /> 65 </fragment> 66 67 <fragment 68 android:id="@+id/record_entry_screen" 69 android:name="com.android.healthconnect.testapps.toolbox.ui.InsertRecordFragment" 70 android:label="fragment_record_entry" 71 tools:layout="@layout/fragment_insert_record"> 72 <argument 73 android:name="permissionType" 74 app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthPermissionType" /> 75 </fragment> 76 77 <fragment 78 android:id="@+id/route_request_screen" 79 android:name="com.android.healthconnect.testapps.toolbox.ui.RouteRequestFragment" 80 android:label="fragment_route_request" 81 tools:layout="@layout/fragment_route_request"> 82 </fragment> 83 84 <fragment 85 android:id="@+id/read_data_in_background_screen" 86 android:name="com.android.healthconnect.testapps.toolbox.ui.ReadDataInBackgroundFragment" 87 android:label="fragment_read_data_in_background" 88 tools:layout="@layout/fragment_read_data_in_background"> 89 </fragment> 90 91 <fragment 92 android:id="@+id/read_data_in_foreground_screen" 93 android:name="com.android.healthconnect.testapps.toolbox.ui.ReadDataInForegroundFragment" 94 android:label="fragment_read_data_in_foreground" 95 tools:layout="@layout/fragment_read_data_in_foreground"> 96 </fragment> 97 98 <fragment 99 android:id="@+id/phr_options_screen" 100 android:name="com.android.healthconnect.testapps.toolbox.ui.PhrOptionsFragment" 101 android:label="phr_options_request" 102 tools:layout="@layout/fragment_phr_options"> 103 </fragment> 104 105 106</navigation>