Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created April 26, 2022 00:50
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 skydoves/76b3d3e2c8a6840e11e577072715bf80 to your computer and use it in GitHub Desktop.
Save skydoves/76b3d3e2c8a6840e11e577072715bf80 to your computer and use it in GitHub Desktop.
nav_graph_example
<navigation
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/nav_graph"
app:startDestination="@id/home_fragment">
<fragment
android:id="@+id/home_fragment"
android:name="io.getstream.HomeFragment">
<action
android:id="@+id/action_home_to_movie"
app:destination="@id/movie_fragment" />
<action
android:id="@+id/action_home_to_tv"
app:destination="@id/tv_fragment" />
</fragment>
<fragment
android:id="@+id/movie_fragment"
android:name="io.getstream.MovieFragment" />
<fragment
android:id="@+id/tv_fragment"
android:name="io.getstream.TvFragment" />
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment