Android 如何检测AutoCompleteTextView弹出方向

Android 如何检测AutoCompleteTextView弹出方向,android,autocompletetextview,android-popupwindow,Android,Autocompletetextview,Android Popupwindow,我正在尝试将自定义绘图设置为我的AutoCompleteTextView弹出式背景 这是我的画: <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#FFFFFF" /> <corners

我正在尝试将自定义绘图设置为我的
AutoCompleteTextView
弹出式背景

这是我的画:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid android:color="#FFFFFF" />
    <corners
        android:bottomLeftRadius="16dp"
        android:bottomRightRadius="16dp" />

</shape>

正如你所看到的,它的底部有一个圆角。现在,当弹出窗口出现在我的
AutoCompleteTextView
的底部时,我没有问题。但当弹出窗口出现在
AutoCompleteTextView
的顶部时,我想显示另一个顶部有圆角的绘图表

我怎样才能做到这一点