multithreading - Android View - Alternatives to finalized() and onDetachFromWindow() for knowing when to terminate threads -
I am expanding the view - especially an image view - and for multi- Many flavors of threaded code. These operations will be long-running, maybe scheduled and are done by the excursor.
I think this view should be available for display in any layout, anywhere in my app - BasAdapter Deployment Ideally this view will be entirely responsible for terminating threads when it is no longer necessary Will be left
Someone has the suggestion of how to eliminate these threads? OnDetachFromWindow () seems suspicious to use if the view is final () fixed condition being displayed through an adapter but it is the most expensive place in terms of execution time.
It seems that, if I want to use the use in a list / gridview, then I will need to "reset" one view to prevent threads and new as new data To provide a public method to look at the data to face ... Maybe I should think of using this scene within the adapter ...
Comments
Post a Comment