taler-android

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

nav_graph.xml (5373B)


      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/processPayment"
     46         android:name="net.taler.merchantpos.payment.ProcessPaymentFragment"
     47         android:label="@string/payment_process_label"
     48         tools:layout="@layout/fragment_process_payment">
     49         <action
     50             android:id="@+id/action_processPayment_to_paymentSuccess"
     51             app:destination="@+id/paymentSuccess"
     52             app:popUpTo="@id/nav_order" />
     53     </fragment>
     54 
     55     <fragment
     56         android:id="@+id/nav_history"
     57         android:name="net.taler.merchantpos.history.HistoryFragment"
     58         android:label="@string/history_label"
     59         tools:layout="@layout/fragment_merchant_history">
     60         <action
     61             android:id="@+id/action_nav_history_to_refundFragment"
     62             app:destination="@id/refundFragment" />
     63     </fragment>
     64 
     65     <fragment
     66         android:id="@+id/refundFragment"
     67         android:name="net.taler.merchantpos.refund.RefundFragment"
     68         android:label="@string/history_refund"
     69         tools:layout="@layout/fragment_refund">
     70         <action
     71             android:id="@+id/action_refundFragment_to_refundUriFragment"
     72             app:destination="@id/refundUriFragment"
     73             app:popUpTo="@id/nav_history" />
     74     </fragment>
     75 
     76     <fragment
     77         android:id="@+id/refundUriFragment"
     78         android:name="net.taler.merchantpos.refund.RefundUriFragment"
     79         android:label="@string/history_refund"
     80         tools:layout="@layout/fragment_refund_uri" />
     81 
     82     <fragment
     83         android:id="@+id/nav_settings"
     84         android:name="net.taler.merchantpos.config.ConfigFragment"
     85         android:label="@string/config_label"
     86         tools:layout="@layout/fragment_merchant_config">
     87         <action
     88             android:id="@+id/action_settings_to_order"
     89             app:destination="@+id/nav_order"
     90             app:launchSingleTop="true"
     91             app:popUpTo="@+id/nav_graph"
     92             app:popUpToInclusive="true" />
     93     </fragment>
     94 
     95     <fragment
     96         android:id="@+id/configFetcher"
     97         android:name="net.taler.merchantpos.config.ConfigFetcherFragment"
     98         android:label="@string/config_fetching_label"
     99         tools:layout="@layout/fragment_config_fetcher">
    100         <action
    101             android:id="@+id/action_configFetcher_to_merchantSettings"
    102             app:destination="@+id/nav_settings"
    103             app:launchSingleTop="true"
    104             app:popUpTo="@+id/nav_graph"
    105             app:popUpToInclusive="true" />
    106         <action
    107             android:id="@+id/action_configFetcher_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/paymentSuccess"
    116         android:name="net.taler.merchantpos.payment.PaymentSuccessFragment"
    117         android:label="@string/payment_received"
    118         tools:layout="@layout/fragment_payment_success" />
    119 
    120     <action
    121         android:id="@+id/action_global_order"
    122         app:destination="@+id/nav_order"
    123         app:launchSingleTop="true"
    124         app:popUpTo="@+id/nav_graph" />
    125     <action
    126         android:id="@+id/action_global_merchantHistory"
    127         app:destination="@+id/nav_history"
    128         app:launchSingleTop="true" />
    129     <action
    130         android:id="@+id/action_global_merchantSettings"
    131         app:destination="@+id/nav_settings"
    132         app:launchSingleTop="true" />
    133     <action
    134         android:id="@+id/action_global_configFetcher"
    135         app:destination="@+id/configFetcher"
    136         app:launchSingleTop="true" />
    137 
    138 </navigation>