当前位置: 动力学知识库 > 问答 > 编程问答 >

Android Layout - UI Objects with the same position

问题描述:

How can I have two images stay on top of each other.

In other words, the position of image 1 is exactly the same as the position of the second image; one image is covering the other completely?

网友答案:

Use a FrameLayout and then put your two ImageViews inside it. Children of a FrameLayout stack on top of each vertically.

网友答案:

I think RelativeLayout is what you are looking for.

网友答案:

You should take a look at FrameLayout. Adroid have an example of using FrameLayout. Read up on this good example, and you'll have a better idea of how to tackle your problem.

分享给朋友:
您可能感兴趣的文章:
随机阅读: