title: how to hide linearlayout from java code?
body: <p>I want to hide the linear layout so i used </p>
  
  <pre><code>LinearLayout mainLayout=(LinearLayout)this.findViewById(R.id.mainLayout);
  mainLayout.setVisibility(2);
  </code></pre>
  
  <p>but why is doesn't hide ??!!!</p>