Skip to content

Instantly share code, notes, and snippets.

@victorbrndls
Created June 23, 2021 00:17
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 victorbrndls/6c570e71d184dfd49237694e01cd9cee to your computer and use it in GitHub Desktop.
Save victorbrndls/6c570e71d184dfd49237694e01cd9cee to your computer and use it in GitHub Desktop.
private fun onItemClicked(binding: LayoutItemDetailBinding, item: Item) {
val extras = FragmentNavigatorExtras(
binding.icon to getString(R.string.item_detail_icon_transition_name)
)
findNavController().navigate(ListFragmentDirections.actionListToDetail(item), extras)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment