Entfernen Sie den Dropdown-Listenteiler AutoCompleteTextView

In meiner Anwendung verwende ich AutoCompleteTextView. Eine der Anforderungen ist, den Teiler zu verbergen. Ich habe AutoCompleteTextView zum Layout hinzugefügt:

 <AutoCompleteTextView
android:id="@id/address_bar"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:layout_marginRight="8dp"
android:layout_toLeftOf="@id/address_operation_btn"
android:background="@null"
android:completionThreshold="1"
android:dropDownAnchor="@id/anchor"
android:dropDownVerticalOffset="13dp"
android:dropDownWidth="wrap_content"
android:ellipsize="end"
android:gravity="center"
android:layout_centerHorizontal="true"
android:hint="@string/address_bar_hint"
android:imeOptions="actionGo"
android:inputType="textUri"
android:maxLines="1"
android:saveEnabled="true"
android:singleLine="true"
android:dropDownListViewStyle="@style/searchResultsList"
android:textColor="@android:color/white"
android:textColorHint="#80FFFFFF"
android:textSize="17sp" />

Der Stil, den ich benutze, ist

    <style name="searchResultsList" parent="@android:style/Widget.ListView">
    <item name="android:divider">@android:color/transparent</item>
    <item name="android:dividerHeight">0px</item>
</style>

Aber der Teiler ist immer noch da ... Wie, wenn er versteckt werden kann?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage