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 </fragment> 31 32 <fragment 33 android:id="@+id/categories_list_screen" 34 android:name="com.android.healthconnect.testapps.toolbox.ui.CategoryListFragment" 35 android:label="fragment_category_list_screen" 36 tools:layout="@layout/fragment_list_screen"> 37 <action 38 android:id="@+id/action_categoryList_to_dataTypeList" 39 app:destination="@id/data_type_list_screen" /> 40 </fragment> 41 42 <fragment 43 android:id="@+id/data_type_list_screen" 44 android:name="com.android.healthconnect.testapps.toolbox.ui.DataTypeListFragment" 45 android:label="fragment_data_type_list_screen" 46 tools:layout="@layout/fragment_list_screen"> 47 <action 48 android:id="@+id/action_dataTypeList_to_insertRecord" 49 app:destination="@id/record_entry_screen" /> 50 <argument 51 android:name="category" 52 app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthDataCategory" /> 53 </fragment> 54 55 <fragment 56 android:id="@+id/record_entry_screen" 57 android:name="com.android.healthconnect.testapps.toolbox.ui.InsertRecordFragment" 58 android:label="fragment_record_entry" 59 tools:layout="@layout/fragment_insert_record"> 60 <argument 61 android:name="permissionType" 62 app:argType="com.android.healthconnect.testapps.toolbox.Constants$HealthPermissionType" /> 63 </fragment> 64 65</navigation>