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

         

Using app client to scan QR code to run Demo


...

kakajika

Tokyo, Japan

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

         

Similarily...
FoldingNavigationDrawer-Android GitHub - tibi1712/FoldingNavigationDrawer-Android
SlidingMenu An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!
SlideBottomPanel 底部划动菜单,滑动时背景图透明度渐变,支持嵌套 LiewView 或 ScrollView
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.