title: How can we hide include layout programmatically in Android?
body: <p>I have to include one layout in my application. So that I have used </p>
  
  <pre><code>&lt;include
      android:id="@+id/support_layout"
      android:width="match_parent"
      android:height="match_parent"
      layout="@layout/support"/&gt;
  </code></pre>
  
  <p>I have referenced this include tag in my java file using View.</p>
  
  <pre><code>View v = (View) findViewById(R.id.support_layout);
  </code></pre>
  
  <p>But at some point of my code I have to Hide this layout.
  so that I used <strong>v.GONE</strong></p>
  
  <p>But it's not Hiding.
  I want to reference those text and button attributes located in XML programatically.
  How can I do that?</p>
  
  <p>There is my support.xml: </p>
  
  <pre><code>&lt;LinearLayout
      android:id="@+id/support_layout"
      android:width="match_parent"
      android:height="match_parent"&gt;
  
      &lt;TextView
          android:id="@+id/txt"
          android:width="match_parent"
          android:height="wrap_content"/&gt;
  
      &lt;Button
          android:id="@+id/btn" 
          android:width="match_parent"
          android:height="wrap_content"
          android:text="Button"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>