I\'m trying to use ListPopupWindow to show a list of strings via an ArrayAdapter (eventually this will be a more complex custom adapter). Code is below. As shown in
ArrayAdapter
Another solution is to set a 0dp height view in your layout xml to use as an anchor.
then set the anchor view sometime before calling the show() method.
listPopupWindow.setAnchorView(popupAnchor); listPopupWindow.show();