I would like to know how to move a view already defined in a layout file to a different position (index) within it's parent (programmatically of course).
For example, take this:
<LinearLayout>
<RelativeLayout id="1"></RelativeLayout>
<RelativeLayout id="2"></RelativeLayout>
<RelativeLayout id="3"></RelativeLayout>
<RelativeLayout id="4"></RelativeLayout>
</LinearLayout>
And do this:
<LinearLayout>
<RelativeLayout id="4"></RelativeLayout>
<RelativeLayout id="1"></RelativeLayout>
<RelativeLayout id="2"></RelativeLayout>
<RelativeLayout id="3"></RelativeLayout>
</LinearLayout>
I would like to achieve this at runtime and have the results reflect immediately if possible. If not, I'm ok with have it occur only on onCreate().