I have a linear vertical layout as below. I need in my application to switch the Button and the TextView. To hide button and show text then change etc. If I use setVisibilit
use-
button.setVisibility(View.GONE);