buci
buci

Reputation: 15

Put image to another image in Android

I need to put image to another image in to the certain position. For example, the first image has resoluiton 1024x768 and I need to put image the second image in position x = 600 and y = 400. Also, I need to change this position by user's choice, for example, for choice A (from spinner) is position XX and for choice B is position XY. Any idea? Thanks for your reply.

Upvotes: 1

Views: 155

Answers (1)

olegr
olegr

Reputation: 2019

You can use FrameLayout. Just put bigger image below smallest. And for small image change margins by user choice.

Here you can find technique how to change margins:

Change the Right Margin of a View Programmatically?

Upvotes: 1

Related Questions