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