There is the way to change visibility of View, but how can I change programmatically visibility of layout defined in XML? How to get layout object?
TextView view = (TextView) findViewById(R.id.textView); view.setText("Add your text here"); view.setVisibility(View.VISIBLE);