]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/navigation/new_transaction_navigation.xml
new transaction: fix saving progress in/out navigation
[mobile-ledger.git] / app / src / main / res / navigation / new_transaction_navigation.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2019 Damyan Ivanov.
4   ~ This file is part of MoLe.
5   ~ MoLe is free software: you can distribute it and/or modify it
6   ~ under the term of the GNU General Public License as published by
7   ~ the Free Software Foundation, either version 3 of the License, or
8   ~ (at your opinion), any later version.
9   ~
10   ~ MoLe is distributed in the hope that it will be useful,
11   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   ~ GNU General Public License terms for details.
14   ~
15   ~ You should have received a copy of the GNU General Public License
16   ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
17   -->
18
19 <navigation xmlns:android="http://schemas.android.com/apk/res/android"
20     xmlns:app="http://schemas.android.com/apk/res-auto"
21     xmlns:tools="http://schemas.android.com/tools"
22     android:id="@+id/new_transaction_navigation"
23     app:startDestination="@id/newTransactionFragment">
24
25     <fragment
26         android:id="@+id/newTransactionFragment"
27         android:name="net.ktnx.mobileledger.ui.activity.NewTransactionFragment"
28         android:label="NewTransactionFragment" >
29         <action
30             android:id="@+id/action_newTransactionFragment_to_newTransactionSavingFragment"
31             app:destination="@id/newTransactionSavingFragment"
32             app:enterAnim="@anim/slide_in_up"
33             app:exitAnim="@anim/slide_out_up"
34             app:launchSingleTop="true"
35             app:popUpTo="@id/new_transaction_navigation"
36             app:popUpToInclusive="true"
37             />
38         <argument
39             android:name="error"
40             app:argType="string"
41             app:nullable="true"
42             android:defaultValue="@null"/>
43     </fragment>
44     <fragment
45         android:id="@+id/newTransactionSavingFragment"
46         android:name="net.ktnx.mobileledger.ui.NewTransactionSavingFragment"
47         android:label="fragment_new_transaction_saving" >
48         <action
49             android:id="@+id/action_newTransactionSavingFragment_Success"
50             app:destination="@id/newTransactionFragment"
51             app:enterAnim="@anim/slide_in_up"
52             app:exitAnim="@anim/slide_out_up"
53             app:launchSingleTop="true"
54             app:popExitAnim="@anim/slide_out_down"
55             app:popUpTo="@id/new_transaction_navigation"
56             app:popUpToInclusive="true"
57             />
58         <action
59             android:id="@+id/action_newTransactionSavingFragment_Failure"
60             app:destination="@id/newTransactionFragment"
61             app:enterAnim="@anim/slide_in_down"
62             app:exitAnim="@anim/slide_out_down"
63             app:launchSingleTop="true"
64             app:popExitAnim="@anim/slide_out_up"
65             app:popUpTo="@id/new_transaction_navigation"
66             app:popUpToInclusive="true"
67             />
68     </fragment>
69 </navigation>