AutocompleteTextView PopupWindow height
<p>I have a <code>AutoCompleteTextView</code> at the top of my screen and have used the default List that is associated with the <code>AutoCompleteTextView</code> to display my data. I have a bottom navigation bar, at the bottom of my screen, which is visible even when the suggestions are displayed. </p>

<p>The problem I am facing is, when there are too many suggestions in the List of the Popup window, it covers my bottom Navigation bar (List is on top of the bottom Navigation bar). I want to prevent this from happening, by giving a margin to the PopupWindows <code>ListView</code> or maybe control the height of the popupWindow. There is an API <code>setDropdownHeight()</code> but there is no marginBottom or a way to limit the bottom part of the view from filling the complete screen.</p>

<pre><code>/**
 * &lt;p&gt;Sets the current height for the auto-complete drop down list. This can
 * be a fixed height, or {@link ViewGroup.LayoutParams#MATCH_PARENT} to fill
 * the screen, or {@link ViewGroup.LayoutParams#WRAP_CONTENT} to fit the height
 * of the drop down's content.&lt;/p&gt;
 *
 * @param height the height to use
 *
 * @attr ref android.R.styleable#AutoCompleteTextView_dropDownHeight
 */
public void setDropDownHeight(int height) {
    mPopup.setHeight(height);
}
</code></pre>

<p>The APIs in <code>AutoCompleteTextView</code> gives options to do this for the top/start of this list with APIs like <code>anchor</code>, <code>verticalOffset</code>, etc. But I have not been able to find an API for doing this at the bottom. Is there a way to achieve this?</p>