开发者

How can I destroy a Bitmap object on touch in Android?

开发者 https://www.devze.com 2023-02-18 05:01 出处:网络
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 w

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消