Last active
August 18, 2020 15:13
-
-
Save Shivamdhuria/4e30f891c46238c9a44516512c4559ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DogDetailFragment : Fragment(R.layout.dog_detail_fragment) { | |
private val args: DogDetailFragmentArgs by navArgs() | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
val (imageUrl, breed) = args | |
ImageLoader.loadImage(requireContext(), imageUrl, image_dog_detail) | |
textview_dog_breed.text = breed | |
//Set the unique transition name to the "end" view | |
detail_container.transitionName = imageUrl | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment