I want to change the relative positions of 2 linearlayouts in a relativelayout. Within the relativelayout view2 is below view1. I want to change this order programmatically to view2 above view1. For some reason it does not seem possible to put another view (view2) above the first view (view1).
I use to following code:
var ll = (LinearLayout) FindViewById(Resource.Id.viewgroup2LL);
RelativeLayout.LayoutParams par = new RelativeLayout.LayoutParams(ll.LayoutParameters);
ll.LayoutParameters = par;
With 3 linearlayouts it is possible to change the order of the second and the third layout, but is seems not possible to place a layout above the first.
Am I missing something? Is there a smart way to do this without complety removing the first layout and creating a new one below the second layout?