开发者

How to put an Image in image with Android?

开发者 https://www.devze.com 2023-03-10 10:32 出处:网络
I need some help, because I am developing an application which I need to do that an image(2) is in other image(1), and when I move the image(1), the image(2) move to the same place.

I need some help, because I am developing an application which I need to do that an image(2) is in other image(1), and when I move the image(1), the image(2) move to the same place.

Please, give me s开发者_C百科ome information or anything to search. Thanks


You could try using a regular ImageView. An ImageView has both a Background and Image, both of which can be drawables.


I'd write a class which extends View. You'll then need to overrode the onDraw method and the onTouchEvent to make it respond to user input. This way you can do anything you like in the onDraw as you have access to the canvas directly.

0

精彩评论

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