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.
Btw, this has nothing to with orientation change of the device. I want the orientation to change as per event encountered.
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