开发者

how can I select one image among many in android?

开发者 https://www.devze.com 2023-04-13 09:06 出处:网络
I am developing a game in android.I have many ImageViews displayed on canvas and I am using emulator.Now I want to select a specific image and want to rotate it.As I am using emulat开发者_运维知识库or

I am developing a game in android.I have many ImageViews displayed on canvas and I am using emulator.Now I want to select a specific image and want to rotate it.As I am using emulat开发者_运维知识库or I cant use ontouchListener.Is there any way to do that?

Thanks in advance.


onTouchListener possible in the emulator. use touch listener's for images u will get the image when u click on image.


The onTouchListener and onClickListeners are attached to views. You cannot do that to bitmaps. So if you want to click and rotate an image you will need to put the image in an imageview and try to rotate it.

0

精彩评论

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

关注公众号