android: how to make a child view overlap the parent?

netimen picture netimen · Mar 21, 2011 · Viewed 18.3k times · Source

I need to implement the layout as in the picture. Parent and Sibling are in a vertical LinearLayout. So I need to make a child view to overlap it's parent. Can I do that in android?

layout

Answer

bigstones picture bigstones · Mar 21, 2011

If:

  1. sibling is a sibling of parent
  2. parent is a ViewGroup
  3. and you really want child to be a child of parent

then maybe you could consider using android:clipChildren set to false on parent.