如何在android的AutocompleteTextView中添加水平滚动条?

如何在android的AutocompleteTextView中添加水平滚动条?,android,scrollview,autocompletetextview,Android,Scrollview,Autocompletetextview,当AutoCompleteText中的文本记录超过其高度时,会自动显示垂直滚动条,但为什么当文本长度大于AutoCompleteText宽度时,滚动条不会显示?如何在AutoCompleteText中添加水平滚动条 主布局: <LinearLayout style="@style/form_item_style_default" android:orientation="horizontal"> <AutoCompleteTextView androi

当AutoCompleteText中的文本记录超过其高度时,会自动显示垂直滚动条,但为什么当文本长度大于AutoCompleteText宽度时,滚动条不会显示?如何在AutoCompleteText中添加水平滚动条

主布局:

<LinearLayout
    style="@style/form_item_style_default"
    android:orientation="horizontal">

<AutoCompleteTextView
    android:id="@+id/refcode_list"
    android:editable="false"
    android:dropDownHeight="170dp"
    android:hint="@string/to_select"
    android:dropDownWidth="match_parent"
    android:scrollbars="horizontal|vertical"/>
</LinearLayout>


使用
autocompleteTextView
android:imeOptions=“flagNoExtractUi”
属性

以下是相关帖子:


PS:我为我的英语道歉,我使用了翻译。

使用
自动完成文本视图的
android:imeOptions=“flagNoExtractUi”
属性

以下是相关帖子:

PS:我为我的英语道歉,我使用了翻译