Skip to content

Instantly share code, notes, and snippets.

@wajahatkarim3
Created January 16, 2020 15:20
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 wajahatkarim3/0bfe6ea392225b1ccccffcc87495e4d0 to your computer and use it in GitHub Desktop.
Save wajahatkarim3/0bfe6ea392225b1ccccffcc87495e4d0 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/bottom_nav_graph.xml"
app:startDestination="@id/homeFragment">
<fragment
android:id="@+id/homeFragment"
android:name="com.wajahatkarim3.bottomnavigationdemo.HomeFragment"
android:label="Home"
tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/searchFragment"
android:name="com.wajahatkarim3.bottomnavigationdemo.SearchFragment"
android:label="Search"
tools:layout="@layout/fragment_search" />
<fragment
android:id="@+id/notificationsFragment"
android:name="com.wajahatkarim3.bottomnavigationdemo.NotificationsFragment"
android:label="Notifications"
tools:layout="@layout/fragment_notifications" >
<action
android:id="@+id/action_notificationsFragment_to_notificationDetailsFragment"
app:destination="@id/notificationDetailsFragment" />
</fragment>
<fragment
android:id="@+id/profileFragment"
android:name="com.wajahatkarim3.bottomnavigationdemo.ProfileFragment"
android:label="Profile"
tools:layout="@layout/fragment_profile" />
<fragment
android:id="@+id/notificationDetailsFragment"
android:name="com.wajahatkarim3.bottomnavigationdemo.NotificationDetailsFragment"
android:label="fragment_notification_details"
tools:layout="@layout/fragment_notification_details" />
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment