Android-如何在edittext下创建谷歌搜索风格的弹出窗口?

Android-如何在edittext下创建谷歌搜索风格的弹出窗口?,android,popupwindow,Android,Popupwindow,我正在尝试在EditText下创建Google搜索风格的弹出窗口。 例如,我在EditText中键入搜索请求,下面将显示一个小弹出窗口,其中包含来自DB的结果。所以,每当我在查询中输入新字母时,这个弹出窗口必须刷新,因为谷歌搜索正在工作。 在我的情况下使用弹出窗口是否正确?我正在寻找类似的解决方案,但没有成功(((使用 将FloatingSearchView添加到视图层次结构中 <com.mypopsy.widget.FloatingSearchView android:

我正在尝试在EditText下创建Google搜索风格的弹出窗口。 例如,我在EditText中键入搜索请求,下面将显示一个小弹出窗口,其中包含来自DB的结果。所以,每当我在查询中输入新字母时,这个弹出窗口必须刷新,因为谷歌搜索正在工作。 在我的情况下使用弹出窗口是否正确?我正在寻找类似的解决方案,但没有成功(((

使用

将FloatingSearchView添加到视图层次结构中

<com.mypopsy.widget.FloatingSearchView
        android:id="@+id/search"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="16dp"
        android:paddingRight="8dp"
        android:paddingLeft="8dp"
        android:background="#90000000"
        android:hint="@string/hint"
        app:logo="@drawable/logo"
        app:fsv_menu="@menu/search"/>
使用

将FloatingSearchView添加到视图层次结构中

<com.mypopsy.widget.FloatingSearchView
        android:id="@+id/search"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingTop="16dp"
        android:paddingRight="8dp"
        android:paddingLeft="8dp"
        android:background="#90000000"
        android:hint="@string/hint"
        app:logo="@drawable/logo"
        app:fsv_menu="@menu/search"/>

使用AutoCompleteTextView使用AutoCompleteTextView