Last active
February 22, 2020 00:15
-
-
Save jtmuller5/b70348a01c56483d99f0c62d7494bd1e 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 onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
view.findViewById<View>(R.id.button_home).setOnClickListener { | |
val extras = FragmentNavigatorExtras( | |
textView to "exampleText" | |
) | |
val action = HomeFragmentDirections.actionHomeFragmentToHomeSecondFragment("From HomeFragment") | |
NavHostFragment.findNavController(this@HomeFragment).navigate(action,extras) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment