PopupWindow overlaps ActionBar
Try popup.setAttachedInDecor(true)
This will attach the popup window to the decor frame of the parent window to avoid overlaping with screen decorations like the navigation bar.
Also you may try using popup.setOverlapAnchor(false)
Sets whether the popup window should overlap its anchor view when displayed as a drop-down.
Hope it helps.