title: How to change visibility of layout programmatically
body: <p>There is a way to change the visibility of View in the XML, but how can I change programmatically visibility of the layout defined in XML? How to get the layout object?</p>
  <pre><code>&lt;LinearLayout
      android:id=&quot;@+id/contacts_type&quot;
      android:orientation=&quot;horizontal&quot;
      android:layout_width=&quot;fill_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:visibility=&quot;gone&quot;&gt;
  &lt;/LinearLayout&gt;
  </code></pre>