Skip to content

Instantly share code, notes, and snippets.

@gogeta95
Created August 15, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gogeta95/d7098e9ecccdd3dafced93191264833d to your computer and use it in GitHub Desktop.
Save gogeta95/d7098e9ecccdd3dafced93191264833d 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/splashFragment">
<fragment
android:id="@+id/splashFragment"
android:name="com.example.navigationsample.fragments.SplashFragment"
android:label="SplashFragment"
tools:layout="@layout/layout_splash">
<action
android:id="@+id/action_splashFragment_to_homeFragment"
app:destination="@id/homeFragment"
app:popUpTo="@id/splashFragment"
app:popUpToInclusive="true"/>
</fragment>
<fragment
android:id="@+id/homeFragment"
android:name="com.example.navigationsample.fragments.HomeFragment"
android:label="HomeFragment"
tools:layout="@layout/layout_home">
</fragment>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment