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
I would just set a dimension in your dimen.xml file at 160dp or so:
160dp
Then set your popup width using the getDimensionPixelSize method to convert into pixels:
int width = mContext.getResources().getDimensionPixelSize(R.dimen.overflow_width);
mListPopupWindow.setWidth(width);
That should keep the size density independent.