Skip to content

Instantly share code, notes, and snippets.

@cengiztoru
Created July 1, 2020 21:06
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 cengiztoru/6c70504661cb9ddf0b5510d796cea7d7 to your computer and use it in GitHub Desktop.
Save cengiztoru/6c70504661cb9ddf0b5510d796cea7d7 to your computer and use it in GitHub Desktop.
Navigation Architecture Components Pass Object - Define Argument
<fragment
android:id="@+id/homeFragment"
android:name="com.cengiztoru.samplenavigationexample.ui.fragments.HomeFragment"
android:label="fragment_home"
tools:layout="@layout/fragment_home">
<argument
android:name="user"
app:argType="com.cengiztoru.samplenavigationexample.data.User"
app:nullable="false" />
</fragment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment