In which fragment callback should you find buttons and set click listeners?
- onDestroyView()
- onViewCreated()
- onDetach()
- onAttach()
Answer
B) onViewCreated()
The view exists in onViewCreated().
Computer Science MCQ · More Lab: Bottom Navigation with Fragments MCQs · Practise