Which call navigates to another destination with the Navigation component?
- replace(R.id.detail)
- setContentView(R.id.detail)
- startActivity(R.id.detail)
- findNavController().navigate(R.id.detailFragment)
Answer
D) findNavController().navigate(R.id.detailFragment)
NavController.navigate() moves between destinations.
Computer Science MCQ · More Windows Mobile, Eclipse and Fragments MCQs · Practise