美文网首页
Android开源框架:RelativePopupWindow(

Android开源框架:RelativePopupWindow(

作者: 嘤嘤嘤999 | 来源:发表于2019-09-26 17:18 被阅读0次

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'

相关文章

网友评论

      本文标题:Android开源框架:RelativePopupWindow(

      本文链接:https://www.haomeiwen.com/subject/ulyiyctx.html