Skip to content

Instantly share code, notes, and snippets.

@jtmuller5
Last active February 22, 2020 00:48
Show Gist options
  • Save jtmuller5/4ff522d8e8067839c12ce668f48b08ff to your computer and use it in GitHub Desktop.
Save jtmuller5/4ff522d8e8067839c12ce668f48b08ff to your computer and use it in GitHub Desktop.
override fun onCreateView(
inflater: LayoutInflater, container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
// Determine how shared elements are handled
sharedElementEnterTransition = TransitionInflater.from(this.context).inflateTransition(R.transition.change_bounds)
sharedElementReturnTransition = TransitionInflater.from(this.context).inflateTransition(R.transition.change_bounds)
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_home_second, container, false)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment