summaryrefslogtreecommitdiff
path: root/app/src/main/res/navigation/nav_graph.xml
blob: 2f9787be57481ba4101b7479110b801e90460d9d (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
<?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/showBalance">

    <fragment android:id="@+id/showBalance" android:name="net.taler.wallet.ShowBalance"
              android:label="Balances" tools:layout="@layout/fragment_show_balance">
        <action android:id="@+id/action_showBalance_to_promptPayment" app:destination="@id/promptPayment"/>
        <action
                android:id="@+id/action_showBalance_to_promptWithdraw"
                app:destination="@id/promptWithdraw" />
    </fragment>
    <fragment android:id="@+id/promptPayment" android:name="net.taler.wallet.PromptPayment"
              android:label="Review Payment" tools:layout="@layout/fragment_prompt_payment">
        <action android:id="@+id/action_promptPayment_to_paymentSuccessful" app:destination="@id/paymentSuccessful"
                app:popUpTo="@id/showBalance"/>
        <action
                android:id="@+id/action_promptPayment_to_alreadyPaid"
                app:destination="@id/alreadyPaid"
                app:popUpTo="@id/showBalance"/>
    </fragment>
    <fragment android:id="@+id/paymentSuccessful" android:name="net.taler.wallet.PaymentSuccessful"
              android:label="Payment Successful" tools:layout="@layout/fragment_payment_successful"/>
    <fragment android:id="@+id/settings" android:name="net.taler.wallet.Settings" android:label="Settings"
              tools:layout="@layout/fragment_settings"/>
    <fragment android:id="@+id/walletHistory" android:name="net.taler.wallet.WalletHistory"
              android:label="History" tools:layout="@layout/fragment_show_history"/>
    <fragment
            android:id="@+id/alreadyPaid"
            android:name="net.taler.wallet.AlreadyPaid"
            android:label="Already Paid"
            tools:layout="@layout/fragment_already_paid" />
    <fragment
            android:id="@+id/promptWithdraw"
            android:name="net.taler.wallet.PromptWithdraw"
            android:label="Withdraw Digital Cash"
            tools:layout="@layout/fragment_prompt_withdraw" >
        <action
                android:id="@+id/action_promptWithdraw_to_withdrawSuccessful"
                app:destination="@id/withdrawSuccessful"
                app:popUpTo="@id/showBalance"/>
    </fragment>
    <fragment
            android:id="@+id/withdrawSuccessful"
            android:name="net.taler.wallet.WithdrawSuccessful"
            android:label="Withdrawal Confirmed"
            tools:layout="@layout/fragment_withdraw_successful" />
</navigation>