TTF-Stock-Check / app / src / main / res / navigation / nav_graph.xml
nav_graph.xml
Raw
<?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/nav_graph"
    app:startDestination="@id/welcomeFragment">
    <fragment
        android:id="@+id/welcomeFragment"
        android:name="au.com.machtech.ttf_stock_check.WelcomeFragment"
        android:label="fragment_welcome"
        tools:layout="@layout/fragment_welcome" >
        <action
            android:id="@+id/action_welcomeFragment_to_homeFragment"
            app:destination="@id/homeFragment" />
        <action
            android:id="@+id/action_welcomeFragment_to_currentStockFragment"
            app:destination="@id/currentStockFragment" />
    </fragment>
    <fragment
        android:id="@+id/currentStockFragment"
        android:name="au.com.machtech.ttf_stock_check.CurrentStockFragment"
        android:label="Current Stock List"
        tools:layout="@layout/fragment_current_stock"/>
    <fragment
        android:id="@+id/homeFragment"
        android:name="au.com.machtech.ttf_stock_check.HomeFragment"
        android:label="fragment_home"
        tools:layout="@layout/fragment_home" >
        <argument
            android:name="updateClick"
            app:argType="string[]" />
    </fragment>
</navigation>