So my layout consists as such:
<OuterView>
<InnerViewOne />
<InnterViewTwo />
</OuterView>
The thing is if we were to make the two inner views as boxes with some width and height such that they overlapped then InnerViewTwo
goes on the top of InnterViewOne
. If there order were to be switched so that it looks like this
<OuterView>
<InnerViewTwo />
<InnterViewOne />
</OuterView>
then InnerViewTwo
goes under InnerViewOne
.
What I want visually is have InnerViewTwo
under InnerViewOne
but in the backend it comes after InnerViewOne
. I am not worried of their place in the x
and y
plane. But I want to change the z
.
NOTE:
1) OuterView = RelativeLayout
2) InnerViewOne = RelativeLayout
3) InnerViewTwo = LinearLayout
with a vertical orientation.