summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation/nav_graph.xml
blob: f615ba264b3bec07680da947da1e0fc95afca237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/nav_graph"
        app:startDestination="@id/order">

    <fragment
            android:id="@+id/order"
            android:name="net.taler.merchantpos.order.OrderFragment"
            android:label="Order"
            tools:layout="@layout/fragment_order">
        <action
                android:id="@+id/action_order_to_processPayment"
                app:destination="@id/processPayment" />
        <action
                android:id="@+id/action_order_to_merchantHistory"
                app:destination="@id/merchantHistory" />
        <action
                android:id="@+id/action_order_to_merchantSettings"
                app:destination="@id/merchantSettings" />
    </fragment>

    <fragment
            android:id="@+id/processPayment"
            android:name="net.taler.merchantpos.payment.ProcessPaymentFragment"
            android:label="Payment Prompt"
            tools:layout="@layout/fragment_process_payment">
        <action
                android:id="@+id/action_processPayment_to_paymentSuccess"
                app:destination="@id/paymentSuccess"
                app:popUpTo="@id/order" />
    </fragment>

    <fragment
            android:id="@+id/merchantHistory"
            android:name="net.taler.merchantpos.MerchantHistory"
            android:label="Payment History"
            tools:layout="@layout/fragment_merchant_history" />

    <fragment
            android:id="@+id/merchantSettings"
            android:name="net.taler.merchantpos.config.MerchantConfigFragment"
            android:label="Merchant Settings"
            tools:layout="@layout/fragment_merchant_settings"/>

    <fragment
            android:id="@+id/configFetcher"
            android:name="net.taler.merchantpos.config.ConfigFetcherFragment"
            android:label="Fetching Configuration"
            tools:layout="@layout/fragment_config_fetcher">
        <action
                android:id="@+id/action_configFetcher_to_merchantSettings"
                app:destination="@id/merchantSettings"
                app:popUpToInclusive="true" />
    </fragment>

    <fragment
            android:id="@+id/paymentSuccess"
            android:name="net.taler.merchantpos.payment.PaymentSuccessFragment"
            android:label="Payment Received"
            tools:layout="@layout/fragment_payment_success" />

    <action
            android:id="@+id/action_global_order"
            app:destination="@id/order" />
    <action
            android:id="@+id/action_global_merchantHistory"
            app:destination="@id/merchantHistory" />
    <action
            android:id="@+id/action_global_merchantSettings"
            app:destination="@id/merchantSettings" />
    <action
            android:id="@+id/action_global_configFetcher"
            app:destination="@id/configFetcher" />

</navigation>