Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wajahatkarim3
Created January 17, 2020 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wajahatkarim3/0a05801f15f47cdad04fde6db01af886 to your computer and use it in GitHub Desktop.
Save wajahatkarim3/0a05801f15f47cdad04fde6db01af886 to your computer and use it in GitHub Desktop.
class NotificationsFragment : Fragment() {
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_notifications, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
setupViews()
}
fun setupViews()
{
btnNotificationDetails.setOnClickListener {
findNavController().navigate(R.id.action_notificationsFragment_to_notificationDetailsFragment)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment