kiki kiki - 4 months ago 36
Android Question

Is it possible to place one view over another in android?

Can we place a small view over another large view? For example, i have a VideoView which is playing a file in the background. Over this, somewhere in the middle/corner, I want to place another ImageView.

But in Linear/Relative Layout, views can be placed only one after another or relativ to each other. And Absolutelayout is advised against. So what do I do?


FrameLayouts let you pile each view on top of the one below. This can also be achieved with a RelativeLayout.