Other Layout visible = false when one layout visible = true

Example: I add 3 layout (layout 1, layout2, layout3)
When 1 button click layout1 visible is true, and other layout visible is false.
But i added more than 10 layouts, i need to select every layout to set visible = false one by one.

It takes more times, and it takes a lot of space while coding, is it possible to set other layout visible to false when 1 layout is visible - with a simple block?

why not… It is so simple… Tell us more, How many buttons do you have? Every button for every layout?

A simple approach… Imagine, there is button in every vertical arrangement. So on clicking any button, concern layout only visible and other will become visible to false


1 Like

It is working and thank you so much.

1 Like