title: Changing orientation of all children of LinearLayout programatically
body: <p>I have a LinearLayout (child) inside another (parent) LinearLayout. I want to change the orientation of the parent from horizontal to vertical and vice versa and do the same for all children. How can i propagate this orientation change from parent to its children with adding any additional interface.</p>
  
  <p>Btw, this has nothing to with orientation change of the device. I want the  orientation to change as per event encountered.</p>
  
  <p>I can have multiple LinearLayout as its children and i don't want to set the orientation of all of these in a for loop since i am adding children programmatically</p>