Sorry for the confusing question, the example might clear things up. I am trying to set an inner layout to some other layout file. For simplicity, I made these all linear layouts, but in general I'd prefer it to be any type of layout. Given main_layout.xml, can I set the inner LinearLayout (chooseLayout) to layout_1.xml or layout_2.xml depending on a button press?Sorry for the confusing question, the example m