オートコンプリート テキストビュー、追加ボタン、およびユーザーの入力時にポップアップするリスト ビューを含むアクティビティがあります。
xml で:
<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" />
<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"/>
問題は、オートコンプリート プロセスによって作成されたリストビューの幅が、オートコンプリート テキスト ビューと同じであることです。ただし、ボタンの幅を含めて全幅にする必要があります (画像を参照)。これを行う方法はありますか?