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

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -