Which callback is called when the fragment's view hierarchy is removed?
- onDestroyView()
- onPause()
- onDetach()
- onAttach()
Answer
A) onDestroyView()
onDestroyView() is called when the view is destroyed; the fragment object may survive.
Computer Science MCQ · More Windows Mobile, Eclipse and Fragments MCQs · Practise