Search code examples
androidimageposition

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.


Solution

  • 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?