Created
August 18, 2020 16:49
-
-
Save Shivamdhuria/403074e823a3f7523b91df3f009b7926 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
override fun itemClickedClicked(view: View, dog: Dog) { | |
exitTransition = Hold().apply { | |
duration = resources.getInteger(R.integer.motion_duration_large).toLong() | |
} | |
reenterTransition = MaterialElevationScale(true).apply { | |
duration = resources.getInteger(R.integer.motion_duration_small).toLong() | |
} | |
val toDogDetailsFragment = DogListFragmentDirections.actionDogListFragmentToDogDetailFragment(dog.imageUrl.toString(), dog.breed) | |
val extras = FragmentNavigatorExtras(view to dog.imageUrl.toString()) | |
navigate(toDogDetailsFragment, extras) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment