Skip to content

Instantly share code, notes, and snippets.

@prolongservices
Created June 25, 2020 09:25
Show Gist options
  • Select an option

  • Save prolongservices/a9211d8175babdb5834d8b0a1373c457 to your computer and use it in GitHub Desktop.

Select an option

Save prolongservices/a9211d8175babdb5834d8b0a1373c457 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_graph"
app:startDestination="@id/firstFragment">
<fragment
android:id="@+id/secondFragment"
android:name="com.learnpainless.androidnavigation.fragments.SecondFragment"
android:label="SecondFragment" >
<action
android:id="@+id/action_secondFragment_to_thirdFragment"
app:destination="@id/thirdFragment"
app:popUpTo="@id/main_graph"
app:popUpToInclusive="true" />
</fragment>
<fragment
android:id="@+id/firstFragment"
android:name="com.learnpainless.androidnavigation.fragments.FirstFragment"
android:label="fragment_third"
tools:layout="@layout/fragment_third" />
<fragment
android:id="@+id/thirdFragment"
android:name="com.learnpainless.androidnavigation.fragments.ThirdFragment"
android:label="ThirdFragment" />
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment