Skip to content

Instantly share code, notes, and snippets.

@pyeongho
Created December 4, 2019 04:13
Show Gist options
  • Save pyeongho/616fc4d88b8bd1f3bc3bb5ce2987b9b4 to your computer and use it in GitHub Desktop.
Save pyeongho/616fc4d88b8bd1f3bc3bb5ce2987b9b4 to your computer and use it in GitHub Desktop.
<?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/register_navigation"
app:startDestination="@+id/nav_register1">
<fragment
android:id="@+id/nav_register1"
android:name="xxx.ui.main.register.Register1Fragment"
android:label="start"
tools:layout="@layout/layout_register_1" >
<action
android:id="@+id/action_nav_register1_to_nav_register2"
app:destination="@+id/nav_register2"
app:popUpTo="@+id/nav_register1">
<argument
android:name="name"
android:defaultValue=" "
app:argType="string" />
</action>
</fragment>
<fragment
android:id="@+id/nav_register2"
android:name="xxx.ui.main.register.Register2Fragment"
android:label="start2"
tools:layout="@layout/layout_register_2" >
<argument
android:name="name"
app:argType="string" />
</fragment>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment