itgoyojeff / RelativePopupWindow

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RelativePopupWindow

Platform API Android Arsenal

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

Install

This library is available in jcenter.

compile 'com.labo.kaji:relativepopupwindow:0.2.0'

License

MIT License.

About

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

License:MIT License


Languages

Language:Java 74.6%Language:Kotlin 25.4%