title: Toggle visibility of a layout on onClick
body: <p>I need to set this layout visible when i click a button, my java is like:</p>
  
  <pre><code>Layout propLayout = (Layout) findViewById(R.id.properLayout);
  
      public void propsBtn(View view) {
  propLayout.setVisiblity(View.Visible);
  }
  </code></pre>
  
  <p>I know I'm totally wrong with the layout line! I'll be very grateful if someone could show me how to set it right :)</p>
  
  <p>This is my XML:</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/mainBackGround"
  tools:context="com.myapplication2.app.MainActivity"&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:padding="8dp"&gt;
  
  ...contents...
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:visibility="gone"
      android:id="@+id/properLayout"&gt;
  
      &lt;RelativeLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="300dp"
          android:layout_gravity="bottom"
          android:padding="8dp"&gt;
  
  ...contents...           
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>