Which callback is called when the fragment's view hierarchy is removed?

  1. onDestroyView()
  2. onPause()
  3. onDetach()
  4. 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