Android PopupWindow that can be easily located relative to anchor View.
Extend RelativePopupWindow class and call showOnAnchor().
popup.showOnAnchor(anchor, VerticalPosition.TOP, HorizontalPosition.CENTER);
- TOP
- ALIGN_BOTTOM
- CENTER
- ALIGN_TOP
- BOTTOM
- LEFT
- ALIGN_RIGHT
- CENTER
- ALIGN_LEFT
- RIGHT
This library is available in jcenter.
compile 'com.labo.kaji:relativepopupwindow:0.1.1'
MIT License.