title: How to keep ListView on the Frame Layout bottoms
body: <p>I need to place a small rectangle above ListView. I used Frame Layout to achieve it.</p>
  
  <pre><code>   item1              item1             item1
     item2              item2             item2
  +----------------------------------------------+
  |  item3              item3             item3  |
  +----------------------------------------------+
     item4              item4             item4
  </code></pre>
  
  <p>Now I have a problem that each time I scroll the list it pops up hiding the the rectangle and returns to the background when I click the list again. </p>
  
  <p>Is there a way to keep the rectangle always on top of the list? Are there other ways besides Frame Layout to overlay views?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;LinearLayout 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:orientation="vertical"
      tools:context=".MainActivity" &gt;
  
      &lt;EditText
          android:id="@+id/edittextSubject"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="@dimen/activity_horizontal_margin"
          android:hint="@string/hint_remind" /&gt;
  
      &lt;FrameLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;View
              android:id="@+id/rectSelectTime"
              android:layout_width="match_parent"
              android:layout_height="72dp"
              android:layout_gravity="center_vertical|center_horizontal|fill_horizontal"
              android:background="@drawable/select_rect"
              android:clickable="true"
              android:importantForAccessibility="yes" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="@dimen/scroller_height"
              android:layout_marginBottom="@dimen/activity_horizontal_margin"
              android:baselineAligned="false"
              android:orientation="horizontal" &gt;
  
              &lt;ListView
                  android:id="@+id/listviewTimeInterval"
                  android:layout_width="0dp"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:focusable="false"
                  android:focusableInTouchMode="false"
                  android:scrollbars="none"
                  android:tag="TimeInterval" &gt;
              &lt;/ListView&gt;
  
              &lt;ListView
                  android:id="@+id/listviewHour"
                  android:layout_width="0dp"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:scrollbars="none"
                  android:tag="Hour" &gt;
              &lt;/ListView&gt;
  
              &lt;ListView
                  android:id="@+id/listviewMinute"
                  android:layout_width="0dp"
                  android:layout_height="match_parent"
                  android:layout_weight="1"
                  android:scrollbars="none"
                  android:tag="Minute" &gt;
              &lt;/ListView&gt;
          &lt;/LinearLayout&gt;
      &lt;/FrameLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>