Do I need to destroy Views that I don't need anymore?

Widget

Well-Known Member
Licensed User
Longtime User
This may be a silly question, I don't know.

I have an Activity where I will be creating panels using code, then after a while I will remove them and create new panels. There could be 50-100 panels created at a time. Before I create the new set of panels, I use Panel123.RemoveView() to get the old panels off the screen. Does this also destroy the memory used by the old panel? Or do I have to worry about the removed views still taking up memory? If so, what is the best way to dispose of views when they are no longer needed?

TIA
Widget
 

kickaha

Well-Known Member
Licensed User
Longtime User
The OS will handle the memory reclaiming on views that have been removed, so you should not need to worry about it.
 
Upvote 0
Top