Skip to content

Instantly share code, notes, and snippets.

@MehulKK
Last active September 13, 2018 12:51
Show Gist options
  • Save MehulKK/2f7ae712764f9fd514411cfae6b5c881 to your computer and use it in GitHub Desktop.
Save MehulKK/2f7ae712764f9fd514411cfae6b5c881 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"
app:startDestination="@id/firstFragment">
<fragment
android:id="@+id/firstFragment"
android:name="com.mehul.navarchicomponentdemo.FirstFragment"
android:label="FirstFragment">
<action
android:id="@+id/toSecondFragment"
app:destination="@id/secondFragment" />
</fragment>
<fragment
android:id="@+id/secondFragment"
android:name="com.mehul.navarchicomponentdemo.SecondFragment"
android:label="SecondFragment" >
<action
android:id="@+id/toThirdFragment"
app:destination="@id/thirdFragment" />
</fragment>
<activity
android:id="@+id/settingActivity"
android:name="com.mehul.navarchicomponentdemo.SettingActivity"
android:label="activity_setting"
tools:layout="@layout/fragment_setting" />
<fragment
android:id="@+id/deepLinkFragment"
android:name="com.mehul.navarchicomponentdemo.DeepLinkFragment"
android:label="fragment_deep_link"
tools:layout="@layout/fragment_deep_link" />
<fragment
android:id="@+id/thirdFragment"
android:name="com.mehul.navarchicomponentdemo.ThirdFragment"
android:label="fragment_third"
tools:layout="@layout/fragment_third">
<action
android:id="@+id/toHomeFragment"
app:popUpTo="@id/firstFragment" />
</fragment>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment