Created
December 4, 2020 14:33
-
-
Save DDihanov/bbf3b1756d9bfafb388c3f357caa10c1 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 HomeFragment : Fragment() { | |
override fun onCreateView( | |
inflater: LayoutInflater, | |
container: ViewGroup?, | |
savedInstanceState: Bundle? | |
): View? { | |
return inflater.inflate(R.layout.fragment_home, container, false) | |
} | |
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
super.onViewCreated(view, savedInstanceState) | |
to_next_fragment_btn.setOnClickListener { | |
findNavController().navigate(HomeFragmentDirections.actionHomeFragmentToNextFragment()) | |
} | |
to_dashboard_flow.setOnClickListener { | |
(requireActivity() as ToFlowNavigatable).navigateToFlow(NavigationFlow.DashboardFlow) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment