How can I destroy a Bitmap object on touch in Android?
I am very new to Android programming, so I hope I make sense. I have a number of Bitmap objects that I would like to erase upon touch, and draw something else. What would be the best way to do it? I was originally开发者_如何学运维 thinking to destroy the object, but it may be redundant if I will be drawing another object anyways. Looking for a point in the right direction :)
You could use the Gallery
(Tutorial) layout to display your objects. Then use onItemClick (AdapterView<?> parent, View view, int position, long id)
as event for replacing the object.
精彩评论