开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜