SkillAgentSearch skills...

RelativePopupWindow

Android PopupWindow that can be easily located relative to anchor View.

Install / Use

/learn @kakajika/RelativePopupWindow
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RelativePopupWindow

wercker status Platform <img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat"> API Android Arsenal Download

Android PopupWindow that can be easily located relative to anchor View.

Art

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

View on GitHub
GitHub Stars809
CategoryDevelopment
Updated22d ago
Forks122

Languages

Java

Security Score

95/100

Audited on Mar 10, 2026

No findings