Skip to content

Instantly share code, notes, and snippets.

@DDihanov
Created December 4, 2020 14:33
Show Gist options
  • Save DDihanov/bbf3b1756d9bfafb388c3f357caa10c1 to your computer and use it in GitHub Desktop.
Save DDihanov/bbf3b1756d9bfafb388c3f357caa10c1 to your computer and use it in GitHub Desktop.
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