how to hide linearlayout from java code? [closed] April 22, 2023 by Tarik Use: mainLayout.setVisibility(LinearLayout.GONE);