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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -