Skip to content

Instantly share code, notes, and snippets.

@iambaljeet
Created December 22, 2018 18:28
Show Gist options
  • Save iambaljeet/2d47f91fb75ccaa91e465fbed4062686 to your computer and use it in GitHub Desktop.
Save iambaljeet/2d47f91fb75ccaa91e465fbed4062686 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/main_nav_graph"
app:startDestination="@id/oneFragment">
<fragment android:id="@+id/oneFragment"
android:name="com.app.kotlinnavigation.OneFragment"
android:label="fragment_one"
tools:layout="@layout/fragment_one">
<action android:id="@+id/action_oneFragment_to_twoFragment"
app:destination="@id/twoFragment"/>
</fragment>
<fragment android:id="@+id/twoFragment"
android:name="com.app.kotlinnavigation.TwoFragment"
android:label="fragment_two"
tools:layout="@layout/fragment_two">
<action android:id="@+id/action_twoFragment_to_threeFragment"
app:destination="@id/threeFragment"/>
</fragment>
<fragment android:id="@+id/threeFragment"
android:name="com.app.kotlinnavigation.ThreeFragment"
android:label="fragment_three"
tools:layout="@layout/fragment_three">
<action android:id="@+id/action_threeFragment_to_oneFragment"
app:destination="@id/oneFragment"/>
</fragment>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment