Android : Android Swap Views

on Sunday, October 26, 2014


I have 4 android custom views XML and I want to shuffle them at runtime.



<RelativeLayout>
<LinearLayout>
<LinearLayout>
<CustomView /> <!-- shuffle these -->
<CustomView /> <!-- shuffle these -->
</LinearLayout>
<LinearLayout>
<CustomView /> <!-- shuffle these -->
<CustomView /> <!-- shuffle these -->
</LinearLayout>
</LinearLayout>
</RelativeLayout>


I can't/don't want to recreate the views as I have a reference to each of these somewhere which I use for something else.


0 comments:

Post a Comment