title: How to set list view to full width?
body: <p>I have an activity with a autocomplete textview, a add button and a list view that pops up when user is typing</p>
  
  <p><img src="https://i.stack.imgur.com/6PVbC.png" alt="enter image description here"></p>
  
  <p>In xml:</p>
  
  <pre><code>&lt;Button
      android:id="@+id/locationButton"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:minWidth="46dip"
      android:onClick="getLocation"
      android:text="@string/icon_map_marker" /&gt;
  
  &lt;AutoCompleteTextView
      android:id="@+id/autocomplete_city"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_centerHorizontal="true"
      android:dropDownVerticalOffset="0.2dp"
      android:hint="@string/city_hint"
      android:inputType="text"
      android:layout_alignBottom="@+id/locationButton"
      android:layout_alignTop="@id/locationButton"
      android:layout_toLeftOf="@id/locationButton"/&gt;
  </code></pre>
  
  <p>The problem is that the listview, that is created by the autocomplete process has the same width as the autocomplete text-view. However it should have full width, including the width of the button (see image). Any ideas how to do this?</p>