multithreading - Android Fragments: removeAllViews in onDestroyView -
my fragment has reference relativelayout mcontentlayout.
in ondestroyview() (before navigating fragment), need remove views of mcontentlayout.
i know should deal ui stuff ui thread, considering layout not visible anymore, make sense call
mcontentlayout.removeallviews() from separate thread, views removal doesn't block ui thread?
i stick guideline if there rule of thumb stick it. there reason.
for particular case, believe wouldn't need use separate thread perform this. ui thread should able clear , redraw fine. deev said same thing in comments.
Comments
Post a Comment