RelativePopupWindow
Android PopupWindow that can be easily located relative to anchor View.
Install / Use
/learn @kakajika/RelativePopupWindowREADME
RelativePopupWindow
<img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat">
Android PopupWindow that can be easily located relative to anchor View.

How To Use
Extend RelativePopupWindow class and call showOnAnchor().
popup.showOnAnchor(anchor, VerticalPosition.ABOVE, HorizontalPosition.CENTER);
See detail example in ExampleCardPopup.kt or in Java, ExampleCardPopup.java.
Position Parameters
VerticalPosition
- ABOVE
- ALIGN_BOTTOM
- CENTER
- ALIGN_TOP
- BELOW
HorizontalPosition
- LEFT
- ALIGN_RIGHT
- CENTER
- ALIGN_LEFT
- RIGHT
Fit In Screen
If you want Popup not to fit in screen automatically, add parameter to disable it.
popup.showOnAnchor(anchor, VerticalPosition.ABOVE, HorizontalPosition.CENTER, false);
Install
This library is available in jcenter.
- for AndroidX:
implementation 'com.labo.kaji:relativepopupwindow:0.4.1'
- for legacy Support Library:
implementation 'com.labo.kaji:relativepopupwindow:0.3.1'
License
MIT License.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
