zcash-android-wallet/app/src/main/res/navigation/mobile_navigation.xml

310 lines
12 KiB
XML

<?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/mobile_navigation"
app:startDestination="@+id/nav_home">
<fragment
android:id="@+id/nav_home"
android:name="cash.z.ecc.android.ui.home.HomeFragment"
tools:layout="@layout/fragment_home">
<action
android:id="@+id/action_nav_home_to_nav_receive"
app:destination="@id/nav_receive" />
<action
android:id="@+id/action_nav_home_to_nav_history"
app:destination="@id/nav_history" />
<action
android:id="@+id/action_nav_home_to_create_wallet"
app:destination="@id/nav_landing" />
<action
android:id="@+id/action_nav_home_to_autoshielding_info"
app:destination="@id/nav_autoshielding_info" />
<action
android:id="@+id/action_nav_home_to_send"
app:destination="@id/nav_send"
app:exitAnim="@anim/anim_exit_to_left"
app:enterAnim="@anim/anim_enter_from_right"/>
<action
android:id="@+id/action_nav_home_to_nav_scan"
app:destination="@id/nav_scan" />
<action
android:id="@+id/action_nav_home_to_nav_profile"
app:destination="@id/nav_profile" />
<action
android:id="@+id/action_nav_home_to_nav_balance_detail"
app:destination="@id/nav_balance_detail" />
<action
android:id="@+id/action_nav_home_to_nav_feedback"
app:destination="@id/nav_feedback" />
<action
android:id="@+id/action_nav_home_to_nav_funds_available"
app:destination="@id/nav_funds_available" />
<action
android:id="@+id/action_nav_home_to_nav_shield_final"
app:destination="@id/nav_shield_final" />
</fragment>
<fragment
android:id="@+id/nav_balance_detail"
android:name="cash.z.ecc.android.ui.home.BalanceDetailFragment"
tools:layout="@layout/fragment_balance_detail">
<action
android:id="@+id/action_nav_balance_detail_to_shield_final"
app:destination="@id/nav_shield_final" />
</fragment>
<fragment
android:id="@+id/nav_receive"
android:name="cash.z.ecc.android.ui.tab_layout.TabLayoutFragment"
tools:layout="@layout/fragment_tab_layout" >
</fragment>
<fragment
android:id="@+id/nav_scan"
android:name="cash.z.ecc.android.ui.scan.ScanFragment"
tools:layout="@layout/fragment_scan">
<action
android:id="@+id/action_nav_scan_to_nav_send"
app:destination="@id/nav_send"
app:popUpTo="@id/nav_scan"
app:popUpToInclusive="true"/>
</fragment>
<fragment
android:id="@+id/nav_history"
android:name="cash.z.ecc.android.ui.history.HistoryFragment"
tools:layout="@layout/fragment_history">
<action
android:id="@+id/action_nav_history_to_nav_transaction"
app:destination="@id/nav_transaction" />
</fragment>
<fragment
android:id="@+id/nav_transaction"
android:name="cash.z.ecc.android.ui.history.TransactionFragment"
tools:layout="@layout/fragment_transaction" />
<fragment
android:id="@+id/nav_profile"
android:name="cash.z.ecc.android.ui.profile.ProfileFragment"
tools:layout="@layout/fragment_profile" >
<action
android:id="@+id/action_nav_profile_to_nav_backup"
app:destination="@id/nav_backup" />
<action
android:id="@+id/action_nav_profile_to_nav_feedback"
app:destination="@id/nav_feedback" />
<action
android:id="@+id/action_nav_profile_to_nav_settings"
app:destination="@id/nav_settings" />
<action
android:id="@+id/action_nav_profile_to_nav_awesome"
app:destination="@id/nav_awesome" />
</fragment>
<fragment
android:id="@+id/nav_feedback"
android:name="cash.z.ecc.android.ui.profile.FeedbackFragment"
tools:layout="@layout/fragment_feedback">
<argument android:name="rating" app:argType="integer" android:defaultValue="-1"/>
<argument android:name="isSolicited" app:argType="boolean" android:defaultValue="false"/>
</fragment>
<fragment
android:id="@+id/nav_settings"
android:name="cash.z.ecc.android.ui.settings.SettingsFragment"
tools:layout="@layout/fragment_settings" />
<fragment
android:id="@+id/nav_awesome"
android:name="cash.z.ecc.android.ui.profile.AwesomeFragment"
tools:layout="@layout/fragment_awesome">
<action
android:id="@+id/action_nav_awesome_to_nav_history"
app:destination="@id/nav_history"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
</fragment>
<fragment
android:id="@+id/nav_autoshielding_info"
android:name="cash.z.ecc.android.ui.home.AutoshieldingInformationFragment"
tools:layout="@layout/fragment_auto_shield_information"
>
<argument android:name="isStartAutoshield"
app:argType="boolean"
android:defaultValue="false"/>
<action
android:id="@+id/action_nav_autoshielding_info_to_home"
app:destination="@id/nav_home"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="true" />
<action
android:id="@+id/action_nav_autoshielding_info_to_autoshield"
app:destination="@id/nav_shield_final" />
<action
android:id="@+id/action_nav_autoshielding_info_to_browser"
app:destination="@id/nav_autoshielding_info_details"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="true" />
</fragment>
<activity
android:id="@+id/nav_autoshielding_info_details"
app:action="android.intent.action.VIEW"
app:data="@string/autoshield_explanation_url" />
<!-- -->
<!-- Send Navigation -->
<!-- -->
<fragment
android:id="@+id/nav_send"
android:name="cash.z.ecc.android.ui.send.SendFragment"
tools:layout="@layout/fragment_send" >
<action
android:id="@+id/action_nav_send_to_nav_scan"
app:destination="@id/nav_scan" />
<action
android:id="@+id/action_nav_send_to_nav_home"
app:destination="@id/nav_home"
app:enterAnim="@anim/anim_enter_from_left"
app:exitAnim="@anim/anim_exit_to_right"/>
<action
android:id="@+id/action_nav_send_to_nav_send_final"
app:destination="@id/nav_send_final"
app:enterAnim="@anim/anim_fade_in"/>
</fragment>
<!-- <fragment-->
<!-- android:id="@+id/nav_send_memo"-->
<!-- android:name="cash.z.ecc.android.ui.send.SendMemoFragment"-->
<!-- tools:layout="@layout/fragment_send_memo" >-->
<!-- <action-->
<!-- android:id="@+id/action_nav_send_memo_to_send_confirm"-->
<!-- app:destination="@id/nav_send_confirm"-->
<!-- app:exitAnim="@anim/anim_exit_to_left"-->
<!-- app:enterAnim="@anim/anim_enter_from_right"/>-->
<!-- <action-->
<!-- android:id="@+id/action_nav_send_memo_to_nav_send_address"-->
<!-- app:destination="@id/nav_send_address"-->
<!-- app:enterAnim="@anim/anim_enter_from_left"-->
<!-- app:exitAnim="@anim/anim_exit_to_right" />-->
<!-- </fragment>-->
<!-- <fragment-->
<!-- android:id="@+id/nav_send_confirm"-->
<!-- android:name="cash.z.ecc.android.ui.send.SendConfirmFragment"-->
<!-- tools:layout="@layout/fragment_send_confirm" >-->
<!-- <action-->
<!-- android:id="@+id/action_nav_send_confirm_to_send_final"-->
<!-- app:destination="@id/nav_send_final"-->
<!-- app:popUpTo="@id/nav_send_confirm"-->
<!-- app:popUpToInclusive="true"-->
<!-- app:enterAnim="@anim/anim_fade_in"/>-->
<!-- <action-->
<!-- android:id="@+id/action_nav_send_confirm_to_nav_send_memo"-->
<!-- app:destination="@id/nav_send_memo"-->
<!-- app:enterAnim="@anim/anim_enter_from_left"-->
<!-- app:exitAnim="@anim/anim_exit_to_right" />-->
<!-- </fragment>-->
<fragment
android:id="@+id/nav_send_final"
android:name="cash.z.ecc.android.ui.send.SendFinalFragment"
tools:layout="@layout/fragment_send_final" >
<action
android:id="@+id/action_nav_send_final_to_nav_home"
app:destination="@id/nav_home"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
<action
android:id="@+id/action_nav_send_final_to_nav_history"
app:destination="@id/nav_history"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
<action
android:id="@+id/action_nav_send_final_to_nav_send"
app:destination="@id/nav_send"
app:popUpTo="@id/nav_send"
app:popUpToInclusive="false"/>
</fragment>
<fragment
android:id="@+id/nav_funds_available"
android:name="cash.z.ecc.android.ui.send.FundsAvailableFragment"
tools:layout="@layout/fragment_funds_available">
<action
android:id="@+id/action_nav_funds_available_to_nav_shield_final"
app:destination="@id/nav_shield_final"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false" />
</fragment>
<fragment
android:id="@+id/nav_shield_final"
android:name="cash.z.ecc.android.ui.send.AutoShieldFragment"
tools:layout="@layout/fragment_auto_shield" >
<action
android:id="@+id/action_nav_shield_final_to_nav_home"
app:destination="@id/nav_home"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
<action
android:id="@+id/action_nav_shield_final_to_nav_history"
app:destination="@id/nav_history"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
<action
android:id="@+id/action_nav_shield_final_to_balance_detail"
app:destination="@id/nav_balance_detail"
app:popUpTo="@id/nav_balance_detail"
app:popUpToInclusive="false"/>
<action
android:id="@+id/action_nav_shield_final_to_profile"
app:destination="@id/nav_profile"
app:popUpTo="@id/nav_home"
app:popUpToInclusive="false"/>
</fragment>
<!-- -->
<!-- Wallet Setup Navigation -->
<!-- -->
<fragment
android:id="@+id/nav_landing"
android:name="cash.z.ecc.android.ui.setup.LandingFragment"
tools:layout="@layout/fragment_landing" >
<action
android:id="@+id/action_nav_landing_to_nav_backup"
app:destination="@id/nav_backup"
app:popUpTo="@id/nav_landing"
app:popUpToInclusive="true"/>
<action
android:id="@+id/action_nav_landing_to_nav_restore"
app:destination="@id/nav_restore" />
</fragment>
<fragment
android:id="@+id/nav_backup"
android:name="cash.z.ecc.android.ui.setup.BackupFragment"
tools:layout="@layout/fragment_backup" >
</fragment>
<fragment
android:id="@+id/nav_restore"
android:name="cash.z.ecc.android.ui.setup.RestoreFragment"
tools:layout="@layout/fragment_restore" >
<action
android:id="@+id/action_nav_restore_to_nav_home"
app:destination="@id/nav_home"
app:popUpTo="@id/nav_landing"
app:popUpToInclusive="true" />
</fragment>
<!-- -->
<!-- Global actions -->
<!-- -->
<action
android:id="@+id/action_global_nav_scan"
app:destination="@id/nav_scan"
app:popUpTo="@id/nav_scan"
app:popUpToInclusive="true" />
</navigation>