taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

nav_graph.xml (14467B)


      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/nav_main">
     22 
     23     <fragment
     24         android:id="@+id/nav_main"
     25         android:name="net.taler.wallet.MainFragment"
     26         android:label="@string/assets_title">
     27         <action
     28             android:id="@+id/action_nav_main_to_nav_uri_input"
     29             app:destination="@id/nav_uri_input" />
     30     </fragment>
     31 
     32     <fragment
     33         android:id="@+id/handleUri"
     34         android:name="net.taler.wallet.HandleUriFragment"
     35         android:label="@string/loading">
     36         <argument
     37             android:name="uri"
     38             app:argType="string"
     39             app:nullable="false" />
     40         <argument
     41             android:name="from"
     42             app:argType="string"
     43             app:nullable="false" />
     44 
     45         <action
     46             android:id="@+id/action_handleUri_to_promptPayment"
     47             app:destination="@id/promptPayment"
     48             app:popUpTo="@id/nav_main" />
     49 
     50         <action
     51             android:id="@+id/action_handleUri_to_promptPullPayment"
     52             app:destination="@id/promptPullPayment"
     53             app:popUpTo="@id/nav_main" />
     54 
     55         <action
     56             android:id="@+id/action_handleUri_to_promptPushPayment"
     57             app:destination="@id/promptPushPayment"
     58             app:popUpTo="@id/nav_main" />
     59 
     60         <action
     61             android:id="@+id/action_handleUri_to_promptPayTemplate"
     62             app:destination="@id/promptPayTemplate"
     63             app:popUpTo="@id/nav_main" />
     64 
     65         <action
     66             android:id="@+id/action_handleUri_to_nav_payto_uri"
     67             app:destination="@id/nav_payto_uri"
     68             app:popUpTo="@id/nav_main" />
     69     </fragment>
     70 
     71     <fragment
     72         android:id="@+id/nav_payto_uri"
     73         android:name="net.taler.wallet.deposit.PayToUriFragment"
     74         android:label="@string/transactions_send_funds">
     75         <argument
     76             android:name="uri"
     77             app:argType="string" />
     78         <action
     79             android:id="@+id/action_nav_payto_uri_to_nav_deposit"
     80             app:destination="@id/nav_deposit" />
     81     </fragment>
     82 
     83     <fragment
     84         android:id="@+id/promptPayment"
     85         android:name="net.taler.wallet.payment.PromptPaymentFragment"
     86         android:label="@string/payment_prompt_title"
     87         tools:layout="@layout/fragment_prompt_payment">
     88         <action
     89             android:id="@+id/action_promptPayment_to_nav_main"
     90             app:destination="@id/nav_main"
     91             app:popUpTo="@id/nav_main" />
     92         <action
     93             android:id="@+id/action_promptPayment_to_nav_transactions_detail_payment"
     94             app:destination="@id/nav_transactions_detail_payment"
     95             app:popUpTo="@id/nav_main" />
     96     </fragment>
     97 
     98     <fragment
     99         android:id="@+id/nav_settings_exchanges"
    100         android:name="net.taler.wallet.exchanges.ExchangeListFragment"
    101         android:label="@string/exchange_list_title" />
    102 
    103     <fragment
    104         android:id="@+id/nav_settings_donau"
    105         android:name="net.taler.wallet.donau.SetDonauFragment"
    106         android:label="@string/donau_title" />
    107 
    108     <fragment
    109         android:id="@+id/nav_donau_statement"
    110         android:name="net.taler.wallet.donau.DonauStatementFragment"
    111         android:label="@string/donau_statement_title">
    112         <argument
    113             android:name="host"
    114             app:argType="string"
    115             app:nullable="false" />
    116     </fragment>
    117 
    118     <fragment
    119         android:id="@+id/nav_wire_transfer_details"
    120         android:name="net.taler.wallet.transfer.WireTransferDetailsFragment"
    121         android:label="@string/withdraw_manual_ready_details_intro">
    122     </fragment>
    123 
    124     <fragment
    125         android:id="@+id/nav_deposit"
    126         android:name="net.taler.wallet.deposit.DepositFragment"
    127         android:label="@string/send_deposit_title">
    128         <argument
    129             android:name="amount"
    130             app:argType="string"
    131             app:nullable="false" />
    132         <argument
    133             android:name="IBAN"
    134             android:defaultValue="@null"
    135             app:argType="string"
    136             app:nullable="true" />
    137         <argument
    138             android:name="receiverName"
    139             android:defaultValue="@null"
    140             app:argType="string"
    141             app:nullable="true" />
    142         <action
    143             android:id="@+id/action_nav_deposit_to_nav_main"
    144             app:destination="@id/nav_main"
    145             app:popUpTo="@id/nav_main" />
    146         <action
    147             android:id="@+id/action_nav_deposit_to_known_bank_accounts"
    148             app:destination="@id/bankAccountsFragment" />
    149     </fragment>
    150 
    151     <fragment
    152         android:id="@+id/nav_peer_pull"
    153         android:name="net.taler.wallet.peer.OutgoingPullFragment"
    154         android:label="@string/receive_peer_title">
    155         <argument
    156             android:name="amount"
    157             android:defaultValue="@null"
    158             app:argType="string"
    159             app:nullable="true" />
    160         <action
    161             android:id="@+id/action_nav_peer_pull_to_nav_main"
    162             app:destination="@id/nav_main"
    163             app:popUpTo="@id/nav_main" />
    164         <action
    165             android:id="@+id/action_nav_peer_pull_to_nav_transactions_detail_peer"
    166             app:destination="@id/nav_transactions_detail_peer"
    167             app:popUpTo="@id/nav_main" />
    168     </fragment>
    169 
    170     <fragment
    171         android:id="@+id/nav_peer_push"
    172         android:name="net.taler.wallet.peer.OutgoingPushFragment"
    173         android:label="@string/send_peer_title">
    174         <argument
    175             android:name="amount"
    176             android:defaultValue="@null"
    177             app:argType="string"
    178             app:nullable="true" />
    179         <action
    180             android:id="@+id/action_nav_peer_push_to_nav_main"
    181             app:destination="@id/nav_main"
    182             app:popUpTo="@id/nav_main" />
    183         <action
    184             android:id="@+id/action_nav_peer_push_to_nav_transactions_detail_peer"
    185             app:destination="@id/nav_transactions_detail_peer"
    186             app:popUpTo="@id/nav_main" />
    187     </fragment>
    188 
    189     <fragment
    190         android:id="@+id/promptPullPayment"
    191         android:name="net.taler.wallet.peer.IncomingPullPaymentFragment"
    192         android:label="@string/pay_peer_title">
    193         <action
    194             android:id="@+id/action_promptPullPayment_to_nav_main"
    195             app:destination="@id/nav_main"
    196             app:popUpTo="@id/nav_main" />
    197         <action
    198             android:id="@+id/action_promptPullPayment_to_transaction_detail_peer"
    199             app:destination="@id/nav_transactions_detail_peer"
    200             app:popUpTo="@id/nav_main" />
    201     </fragment>
    202 
    203     <fragment
    204         android:id="@+id/promptPushPayment"
    205         android:name="net.taler.wallet.peer.IncomingPushPaymentFragment"
    206         android:label="@string/receive_peer_payment_title">
    207         <action
    208             android:id="@+id/action_promptPushPayment_to_nav_main"
    209             app:destination="@id/nav_main"
    210             app:popUpTo="@id/nav_main" />
    211         <action
    212             android:id="@+id/action_promptPushPayment_to_transaction_detail_peer"
    213             app:destination="@id/nav_transactions_detail_peer"
    214             app:popUpTo="@id/nav_main" />
    215     </fragment>
    216 
    217     <fragment
    218         android:id="@+id/promptPayTemplate"
    219         android:name="net.taler.wallet.payment.PayTemplateFragment"
    220         android:label="@string/payment_pay_template_title">
    221         <action
    222             android:id="@+id/action_promptPayTemplate_to_promptPayment"
    223             app:destination="@+id/promptPayment"
    224             app:popUpTo="@id/nav_main" />
    225         <argument
    226             android:name="uri"
    227             app:argType="string" />
    228     </fragment>
    229 
    230     <fragment
    231         android:id="@+id/nav_transactions_detail_withdrawal"
    232         android:name="net.taler.wallet.transactions.TransactionWithdrawalFragment"
    233         android:label="@string/withdraw_title" />
    234 
    235     <fragment
    236         android:id="@+id/nav_transactions_detail_payment"
    237         android:name="net.taler.wallet.transactions.TransactionPaymentFragment"
    238         android:label="@string/payment_title" />
    239 
    240     <fragment
    241         android:id="@+id/nav_transactions_detail_refund"
    242         android:name="net.taler.wallet.transactions.TransactionRefundFragment"
    243         android:label="@string/refund_title" />
    244 
    245     <fragment
    246         android:id="@+id/nav_transactions_detail_refresh"
    247         android:name="net.taler.wallet.transactions.TransactionRefreshFragment"
    248         android:label="@string/transaction_refresh" />
    249 
    250     <fragment
    251         android:id="@+id/nav_transactions_detail_deposit"
    252         android:name="net.taler.wallet.transactions.TransactionDepositFragment"
    253         android:label="@string/transaction_deposit" />
    254 
    255     <fragment
    256         android:id="@+id/nav_transactions_detail_peer"
    257         android:name="net.taler.wallet.transactions.TransactionPeerFragment"
    258         android:label="@string/transactions_detail_title" />
    259 
    260     <fragment
    261         android:id="@+id/nav_transactions_detail_loss"
    262         android:name="net.taler.wallet.transactions.TransactionLossFragment"
    263         android:label="@string/transaction_denom_loss" />
    264 
    265     <fragment
    266         android:id="@+id/nav_transactions_detail_dummy"
    267         android:name="net.taler.wallet.transactions.TransactionDummyFragment"
    268         android:label="@string/transaction_dummy_title" />
    269 
    270     <fragment
    271         android:id="@+id/promptWithdraw"
    272         android:name="net.taler.wallet.withdraw.PromptWithdrawFragment"
    273         android:label="@string/nav_prompt_withdraw">
    274         <argument
    275             android:name="withdrawUri"
    276             app:nullable="true"
    277             app:argType="string" />
    278         <argument
    279             android:name="withdrawExchangeUri"
    280             app:nullable="true"
    281             app:argType="string" />
    282         <argument
    283             android:name="editableCurrency"
    284             android:defaultValue="true"
    285             app:argType="boolean" />
    286         <argument
    287             android:name="exchangeBaseUrl"
    288             app:nullable="true"
    289             app:argType="string" />
    290         <argument
    291             android:name="amount"
    292             app:nullable="true"
    293             app:argType="string" />
    294         <action
    295             android:id="@+id/action_promptWithdraw_to_nav_main"
    296             app:destination="@id/nav_main"
    297             app:popUpTo="@id/nav_main" />
    298         <action
    299             android:id="@+id/action_promptWithdraw_to_nav_transactions_detail_withdrawal"
    300             app:destination="@id/nav_transactions_detail_withdrawal"
    301             app:popUpTo="@id/nav_main" />
    302         <action
    303             android:id="@+id/action_promptWithdraw_to_errorFragment"
    304             app:destination="@id/errorFragment"
    305             app:popUpTo="@id/nav_main" />
    306     </fragment>
    307 
    308     <fragment
    309         android:id="@+id/reviewExchangeTOS"
    310         android:name="net.taler.wallet.withdraw.ReviewExchangeTosFragment"
    311         android:label="@string/nav_exchange_tos"
    312         tools:layout="@layout/fragment_review_exchange_tos">
    313         <action
    314             android:id="@+id/action_reviewExchangeTOS_to_promptWithdraw"
    315             app:destination="@id/promptWithdraw"
    316             app:popUpTo="@id/nav_main" />
    317     </fragment>
    318 
    319     <fragment
    320         android:id="@+id/nav_uri_input"
    321         android:name="net.taler.wallet.UriInputFragment"
    322         android:label="@string/enter_uri"
    323         tools:layout="@layout/fragment_uri_input" />
    324 
    325     <fragment
    326         android:id="@+id/errorFragment"
    327         android:name="net.taler.wallet.withdraw.ErrorFragment"
    328         android:label="@string/nav_error"
    329         tools:layout="@layout/fragment_error" />
    330 
    331     <fragment
    332         android:id="@+id/bankAccountsFragment"
    333         android:name="net.taler.wallet.accounts.BankAccountsFragment"
    334         android:label="@string/send_deposit_known_bank_accounts">
    335         <action
    336             android:id="@+id/action_nav_bank_accounts_to_add_bank_account"
    337             app:destination="@+id/addBankAccountFragment" />
    338     </fragment>
    339 
    340     <fragment
    341         android:id="@+id/addBankAccountFragment"
    342         android:name="net.taler.wallet.accounts.AddAccountFragment"
    343         android:label="@string/send_deposit_account_add">
    344         <argument
    345             android:name="bankAccountId"
    346             app:nullable="true"
    347             app:argType="string" />
    348     </fragment>
    349 
    350     <action
    351         android:id="@+id/action_global_handle_uri"
    352         app:destination="@id/handleUri" />
    353 
    354     <action
    355         android:id="@+id/action_handleUri_to_promptWithdraw"
    356         app:destination="@id/promptWithdraw"
    357         app:popUpTo="@id/nav_main" />
    358 
    359     <action
    360         android:id="@+id/action_global_promptPayment"
    361         app:destination="@id/promptPayment" />
    362 
    363     <action
    364         android:id="@+id/action_nav_transactions_detail_withdrawal"
    365         app:destination="@id/nav_transactions_detail_withdrawal" />
    366 
    367     <action
    368         android:id="@+id/action_nav_transactions_detail_payment"
    369         app:destination="@id/nav_transactions_detail_payment" />
    370 
    371     <action
    372         android:id="@+id/action_nav_transactions_detail_refund"
    373         app:destination="@id/nav_transactions_detail_refund" />
    374 
    375     <action
    376         android:id="@+id/action_nav_transactions_detail_refresh"
    377         app:destination="@id/nav_transactions_detail_refresh" />
    378 
    379     <action
    380         android:id="@+id/action_nav_transactions_detail_deposit"
    381         app:destination="@id/nav_transactions_detail_deposit" />
    382 
    383     <action
    384         android:id="@+id/action_nav_payto_uri"
    385         app:destination="@id/nav_payto_uri" />
    386 
    387     <action
    388         android:id="@+id/action_global_reviewExchangeTos"
    389         app:destination="@id/reviewExchangeTOS" />
    390 
    391 </navigation>