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

Min SDK   16
Latest Commit   2017-03-27 09:53:37
License   MIT

Github   https://github.com/kakajika/RelativePopupWindow

         

使用APP客户端扫描二维码运行Demo


...

kakajika

Tokyo, Japan

http://www.kaji-labo.com/

         

类似的还有....
floating-action-button Implementation of a circular button made of paper that lifts and emits ink reactions on press.
CircleProgressMenu A simple circle menu with progress effect.It's used for some projects that need to be done step by step.The default color of the circles around is dark grey, The color of a certain circle will turn green when you are doing tasks involved in it and then blue when you complete them.Of course ,you can change these three status colors as you like at xml.Just copy my code if you need such a menu, which is quite easy to understand. Any suggestion, please send to:stewforani@gmail.com. Thank you!
BoomMenu A menu which can ... BOOM! - Android
README

README.md

RelativePopupWindow

wercker status 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

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.

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

License

MIT License.