taler-android

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

nav_graph.xml (6303B)


      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_order"
     22     tools:ignore="UnusedNavigation">
     23 
     24     <fragment
     25         android:id="@+id/nav_order"
     26         android:name="net.taler.merchantpos.order.OrderFragment"
     27         android:label=""
     28         tools:layout="@layout/fragment_order">
     29         <action
     30             android:id="@+id/action_order_to_merchantSettings"
     31             app:destination="@+id/nav_settings"
     32             app:launchSingleTop="true"
     33             app:popUpTo="@+id/nav_graph"
     34             app:popUpToInclusive="true" />
     35         <action
     36             android:id="@+id/action_order_self"
     37             app:destination="@+id/nav_order"
     38             app:popUpTo="@+id/nav_graph" />
     39         <action
     40             android:id="@+id/action_order_to_processPayment"
     41             app:destination="@+id/processPayment" />
     42     </fragment>
     43 
     44     <fragment
     45         android:id="@+id/nav_amountEntry"
     46         android:name="net.taler.merchantpos.amount.AmountEntryFragment"
     47         android:label="@string/amount_entry_label"
     48         tools:layout="@layout/fragment_amount_entry">
     49         <action
     50             android:id="@+id/action_amountEntry_to_processPayment"
     51             app:destination="@+id/processPayment" />
     52     </fragment>
     53 
     54     <fragment
     55         android:id="@+id/processPayment"
     56         android:name="net.taler.merchantpos.payment.ProcessPaymentFragment"
     57         android:label="@string/payment_process_label"
     58         tools:layout="@layout/fragment_process_payment">
     59         <action
     60             android:id="@+id/action_processPayment_to_paymentSuccess"
     61             app:destination="@+id/paymentSuccess"
     62             app:popUpTo="@id/nav_order" />
     63     </fragment>
     64 
     65     <fragment
     66         android:id="@+id/nav_history"
     67         android:name="net.taler.merchantpos.history.HistoryFragment"
     68         android:label="@string/history_label"
     69         tools:layout="@layout/fragment_merchant_history">
     70         <action
     71             android:id="@+id/action_nav_history_to_refundFragment"
     72             app:destination="@id/refundFragment" />
     73     </fragment>
     74 
     75     <fragment
     76         android:id="@+id/refundFragment"
     77         android:name="net.taler.merchantpos.refund.RefundFragment"
     78         android:label="@string/history_refund"
     79         tools:layout="@layout/fragment_refund">
     80         <action
     81             android:id="@+id/action_refundFragment_to_refundUriFragment"
     82             app:destination="@id/refundUriFragment"
     83             app:popUpTo="@id/nav_history" />
     84     </fragment>
     85 
     86     <fragment
     87         android:id="@+id/refundUriFragment"
     88         android:name="net.taler.merchantpos.refund.RefundUriFragment"
     89         android:label="@string/history_refund"
     90         tools:layout="@layout/fragment_refund_uri" />
     91 
     92     <fragment
     93         android:id="@+id/nav_settings"
     94         android:name="net.taler.merchantpos.config.GeneralSettingsFragment"
     95         android:label="@string/menu_settings">
     96         <action
     97             android:id="@+id/action_settings_to_instanceSettings"
     98             app:destination="@+id/nav_instanceSettings" />
     99     </fragment>
    100 
    101     <fragment
    102         android:id="@+id/nav_instanceSettings"
    103         android:name="net.taler.merchantpos.config.ConfigFragment"
    104         android:label="@string/config_label"
    105         tools:layout="@layout/fragment_merchant_config">
    106         <action
    107             android:id="@+id/action_instanceSettings_to_order"
    108             app:destination="@+id/nav_order"
    109             app:launchSingleTop="true"
    110             app:popUpTo="@+id/nav_graph"
    111             app:popUpToInclusive="true" />
    112     </fragment>
    113 
    114     <fragment
    115         android:id="@+id/configFetcher"
    116         android:name="net.taler.merchantpos.config.ConfigFetcherFragment"
    117         android:label="@string/config_fetching_label"
    118         tools:layout="@layout/fragment_config_fetcher">
    119         <action
    120             android:id="@+id/action_configFetcher_to_merchantSettings"
    121             app:destination="@+id/nav_instanceSettings"
    122             app:launchSingleTop="true"
    123             app:popUpTo="@+id/nav_graph"
    124             app:popUpToInclusive="true" />
    125         <action
    126             android:id="@+id/action_configFetcher_to_order"
    127             app:destination="@+id/nav_order"
    128             app:launchSingleTop="true"
    129             app:popUpTo="@+id/nav_graph"
    130             app:popUpToInclusive="true" />
    131     </fragment>
    132 
    133     <fragment
    134         android:id="@+id/paymentSuccess"
    135         android:name="net.taler.merchantpos.payment.PaymentSuccessFragment"
    136         android:label="@string/payment_received"
    137         tools:layout="@layout/fragment_payment_success" />
    138 
    139     <action
    140         android:id="@+id/action_global_order"
    141         app:destination="@+id/nav_order"
    142         app:launchSingleTop="true"
    143         app:popUpTo="@+id/nav_graph" />
    144     <action
    145         android:id="@+id/action_global_amountEntry"
    146         app:destination="@+id/nav_amountEntry"
    147         app:launchSingleTop="true"
    148         app:popUpTo="@+id/nav_graph" />
    149     <action
    150         android:id="@+id/action_global_merchantHistory"
    151         app:destination="@+id/nav_history"
    152         app:launchSingleTop="true" />
    153     <action
    154         android:id="@+id/action_global_merchantSettings"
    155         app:destination="@+id/nav_settings"
    156         app:launchSingleTop="true" />
    157     <action
    158         android:id="@+id/action_global_configFetcher"
    159         app:destination="@+id/configFetcher"
    160         app:launchSingleTop="true" />
    161 
    162 </navigation>