title: Cannot click button within relativelayout that has linearlayout
body: <p>Below is my xml file with problem.
  When I remove the linear layout and let spinner in relative_layout it works
  fine but as soon as I put them in Linear_layout, button and edit_box cannot be pressed. Please help.</p>
  
  <pre><code>&lt;RelativeLayout 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"
      tools:context=".MainActivity" &gt;
  
      &lt;AutoCompleteTextView
          android:id="@+id/trainid"
          android:hint="@string/train"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentStart="true" /&gt;
  
  
      &lt;Button 
          android:id="@+id/button"
          android:text="@string/search"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentEnd="true" /&gt;
      &lt;TextView 
          android:id="@+id/traindetails"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/trainid"
          android:text="" /&gt;
  
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/traindetails"
          android:orientation="horizontal" &gt;
  
          &lt;Spinner
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:id="@+id/selectcurrentstation"
              android:spinnerMode="dropdown"
              android:layout_weight="0.5" /&gt;
          &lt;Spinner
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:id="@+id/selecttargetstation"
              android:spinnerMode="dropdown"
              android:layout_weight="0.5" /&gt;
  
      &lt;/LinearLayout&gt;
  
  
  
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_below="@id/selectcurrentstation" &gt;
  
          &lt;TableLayout 
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:stretchColumns="1"
              android:id="@+id/table" /&gt;
  
      &lt;/ScrollView&gt;
  
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When I change my xml file to this it works fine. But I want the above layout.</p>
  
  <pre><code>&lt;RelativeLayout 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"
      tools:context=".MainActivity" &gt;
  
      &lt;AutoCompleteTextView
          android:id="@+id/trainid"
          android:hint="@string/train"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentStart="true"
          android:focusable="true" /&gt;
  
  
      &lt;Button 
          android:id="@+id/button"
          android:text="@string/search"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentEnd="true"
          android:focusable="true" /&gt;
      &lt;TextView 
          android:id="@+id/traindetails"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_below="@id/trainid"
          android:text="" /&gt;
  
  
  
  
      &lt;Spinner
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:id="@+id/selectcurrentstation"
          android:spinnerMode="dropdown"
          android:layout_below="@id/traindetails" /&gt;
      &lt;Spinner
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:id="@+id/selecttargetstation"
          android:spinnerMode="dropdown"
          android:layout_below="@id/selectcurrentstation" /&gt;
  
  
  
  
  
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:layout_below="@id/selectcurrentstation" &gt;
  
          &lt;TableLayout 
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:stretchColumns="1"
              android:id="@+id/table" /&gt;
  
      &lt;/ScrollView&gt;
  
  
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>