title: Search Suggestions In Android
body: <p>i have done Search suggestions in android by using edittext and listview. </p>
  
  <p>what i need exactly is in my activity there are so many buttons after the edittext, when i type  letters in edit text it will show the corresponding search in list view but buttons will be appearing after that listview. </p>
  
  <p>my xml file looks like this..</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
   &lt;!-- Editext for Search --&gt;
  &lt;EditText android:id="@+id/inputSearch"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:hint="Search products.."
      android:inputType="textVisiblePassword"/&gt;
  
  &lt;!-- List View --&gt;
  &lt;ListView
      android:id="@+id/list_view"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" /&gt;
  
      &lt;Button android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="after Edit Text"/&gt;
  
      &lt;Button android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="Second Button"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>i am getting output as</p>
  
  <p><img src="https://i.stack.imgur.com/gMFz3.png" alt="enter image description here"></p>
  
  <p>wat i need is my list of suggeations should not disturb any buttons in background after that searchable edit text,, any help will be appreciated</p>