android - How to remove a layout and add a new layout by button click -
i want remove relative layout
after button click , add new layout view .the relative layout @ oncreate()
, button click @ onstart()
.
keep both layouts in layout xml file. keep visibility of second layout gone. on button click, set visibility of first layout gone , visibility of second layout visible.
you can use setvisibility (int visibility) method this.
Comments
Post a Comment