android - Program running slow, because there are many objects. -


i have simple game, game protecting baby flies, must click flies kill , save baby. flies using imageview.

but have problem, have timer every second create 1 flies, if in level 1 50seconds , theres 50 imageview in layout.

this make program running slow.

how solve problem? should delete imageview when out of layout? code? cant use remove view because open windows classfile editor.

any help/tips appreciated.

try this

i believe easy solution

mviewstub.setvisibility(view.gone); 

then when removed sight release memory.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -