Android开源框架:RelativePopupWindow(popwindow开源框架满足各种需求)

RelativePopupWindow(请去GitHub集成实现功能)

项目地址:https://github.com/kakajika/RelativePopupWindow
简介:Android PopupWindow that can be easily located relative to anchor View.

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
  • Install
    This library is available in jcenter.
implementation 'com.labo.kaji:relativepopupwindow:0.2.0'

猜你喜欢

转载自blog.csdn.net/HelloGuoYing/article/details/100729807