My fragment has the reference to a RelativeLayout
mContentLayout.
In onDestroyView()
(before navigating to another fragment), I need to remove all views of this mContentLayout.
I know that you should deal with UI stuff only from the UI thread, but considering the layout is not visible anymore, would it make sense to call
mContentLayout.removeAllViews()
from a separate thread, so that the views removal doesn't block the UI thread?