LinearLayout (horizontal) - Swapping button positions
<p>I have a horizontal <code>LinearLayout</code> which has 4 image buttons in it, all the same size with the same layout params. I would like the user to be able to swap the positions of buttons 2 and 3 over. I was thinking they could perhaps swipe over the buttons to swap them, or maybe have another small button between them with an arrow image that they pressed.</p>

<p>My problem is I'm not sure how I would swap the button positions over in the layout! I assume I need to get hold of the index of each in the layout and then add and remove them and then cause the layout to be recalculated so it is redrawn. Is this possible?</p>

<p>Also it would be nice to show some animation of the buttons moving in to position but I suspect this is just not possible.</p>

<p>Any advice?</p>
