nav_graph.xml (2915B)
1 <?xml version="1.0" encoding="utf-8"?><!-- 2 ~ This file is part of GNU Taler 3 ~ (C) 2020 Taler Systems S.A. 4 ~ 5 ~ GNU Taler is free software; you can redistribute it and/or modify it under the 6 ~ terms of the GNU General Public License as published by the Free Software 7 ~ Foundation; either version 3, or (at your option) any later version. 8 ~ 9 ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY 10 ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 ~ A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 ~ 13 ~ You should have received a copy of the GNU General Public License along with 14 ~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 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 android:id="@+id/nav_graph" 21 app:startDestination="@id/balanceFragment" 22 tools:ignore="UnusedNavigation"> 23 24 <fragment 25 android:id="@+id/configFragment" 26 android:name="net.taler.cashier.config.ConfigFragment" 27 android:label="ConfigFragment" 28 tools:layout="@layout/fragment_config"> 29 <action 30 android:id="@+id/action_configFragment_to_balanceFragment" 31 app:destination="@id/balanceFragment" 32 app:launchSingleTop="true" 33 app:popUpTo="@id/balanceFragment" /> 34 </fragment> 35 36 <fragment 37 android:id="@+id/balanceFragment" 38 android:name="net.taler.cashier.BalanceFragment" 39 android:label="fragment_balance" 40 tools:layout="@layout/fragment_balance"> 41 <action 42 android:id="@+id/action_balanceFragment_to_transactionFragment" 43 app:destination="@id/transactionFragment" /> 44 </fragment> 45 46 <fragment 47 android:id="@+id/transactionFragment" 48 android:name="net.taler.cashier.withdraw.TransactionFragment" 49 android:label="fragment_transaction" 50 tools:layout="@layout/fragment_transaction"> 51 <action 52 android:id="@+id/action_transactionFragment_to_errorFragment" 53 app:destination="@id/errorFragment" 54 app:launchSingleTop="true" 55 app:popUpTo="@+id/balanceFragment" /> 56 <action 57 android:id="@+id/action_transactionFragment_to_balanceFragment" 58 app:destination="@id/balanceFragment" 59 app:launchSingleTop="true" 60 app:popUpTo="@+id/balanceFragment" /> 61 </fragment> 62 63 <fragment 64 android:id="@+id/errorFragment" 65 android:name="net.taler.cashier.withdraw.ErrorFragment" 66 tools:layout="@layout/fragment_error" /> 67 68 <action 69 android:id="@+id/action_global_configFragment" 70 app:destination="@id/configFragment" 71 app:launchSingleTop="true" /> 72 73 </navigation>