Skip to content

Instantly share code, notes, and snippets.

@shanmugasanthosh7
Created May 26, 2018 14:36
Show Gist options
  • Select an option

  • Save shanmugasanthosh7/af69c16352436555a0ca60c1d7b0d3e4 to your computer and use it in GitHub Desktop.

Select an option

Save shanmugasanthosh7/af69c16352436555a0ca60c1d7b0d3e4 to your computer and use it in GitHub Desktop.
Bundle Arguments
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
app:startDestination="@id/bundleFragment">
<fragment
android:id="@+id/bundleFragment"
android:name="com.aptus.navigatioarchitecture.passdata.BundleFragment"
android:label="fragment_bundle"
tools:layout="@layout/fragment_bundle" >
<action
android:id="@+id/action_bundleFragment_to_passBundleFragment"
app:destination="@id/passBundleFragment" />
</fragment>
<fragment
android:id="@+id/passBundleFragment"
android:name="com.aptus.navigatioarchitecture.passdata.PassBundleFragment"
android:label="fragment_pass_bundle"
tools:layout="@layout/fragment_pass_bundle" >
<argument
android:name="name"
android:defaultValue="Android" />
</fragment>
</navigation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment