autoCompleteTextView显示缩小的滚动条

问题描述

我创建了一个atuoCompleteTextView,它可以正确找到所有结果。

<AutoCompleteTextView
    android:id="@+id/autoComplete"
    android:layout_width="200dp"
    android:layout_height="wrap_content"
    android:layout_marginTop="24dp"
    android:textColor="@color/colorPrimary"
    android:textSize="16sp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

但是,我注意到如果结果多于2个,则在我滚动结果并将其扩展到所有结果之前,它仅显示2个。

作为示例,如果找到4个结果,但由于某种原因,它显示2个并滚动:

enter image description here

然后,当我滚动时,它会扩展为:

enter image description here

是否有设置最低显示结果的选项?例如,它将始终显示5个结果,然后才会显示scrollbar

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)