Change the visibility using setVisibility in Android programmatically.
// Set Visible yourView.setVisibility(View.VISIBLE); // Set Invisible yourView.setVisibility(View.GONE);
Use even View.GONE to hide a view or View.VISIBLE to show it.
We provide special containers which include the full snippet and a link to this site. So for example when you make a tutorial and you are using code from this site, you can use one of the following snippet embeddings: