Skip to content

Instantly share code, notes, and snippets.

@princessdharmy
Created November 21, 2020 19:10
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 princessdharmy/2e19a99667535e244270ce78d9ac7acf to your computer and use it in GitHub Desktop.
Save princessdharmy/2e19a99667535e244270ce78d9ac7acf 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"
android:id="@+id/bottom_nav_graph"
app:startDestination="@id/todayFixtureFragment">
<fragment
android:id="@+id/todayFixtureFragment"
android:name="com.example.competitions.ui.today.TodayFixturesFragment"
android:label="Today's Fixture" />
<fragment
android:id="@+id/competitionsFragment"
android:name="com.example.competitions.ui.competitions.CompetitionsFragment"
android:label="Competitions">
<action android:id="@+id/action_competitionsFragment_to_competitionDetailsFragment"
app:destination="@id/view_pager_nav_graph">
<argument android:name="competition"
app:argType="com.example.presentation.models.Competitions"/>
</action>
</fragment>
<include app:graph="@navigation/view_pager_nav_graph"/>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment