Giter VIP home page Giter VIP logo

basepopup's Introduction

中文 | English

Logo图片似乎加载不出来

BasePopup - Android下打造通用便捷的PopupWindow弹窗库

Release Snapshot License Api Author



介绍

BasePopup是一个对系统PopupWindow进行封装并改进的弹窗库,它是一个基础库类,有着非常高的自由度与丰富的API,您可以在BasePopup的框架下非常轻松的完成各种各样的弹窗。

环境依赖

// root gradle
allprojects {
    repositories {
        // release依赖仓库(4.1后as默认配置有)
        mavenCentral()

        // snapshot仓库(如果需要snapshot依赖,请配置该maven)
        maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
    }
}

// project dependencies
dependencies {
  implementation 'io.github.razerdp:BasePopup:3.2.0'

  // for snapshot
  // implementation 'io.github.razerdp:BasePopup:3.2.1-SNAPSHOT'
}

文档

注意事项

  • Release和Snapshot两个版本互相切换可能会导致Build失败,这时候您Clean一下Project即可
  • 3.0版本会对2.x版本升级上来的用户造成较大范围的改动,请您务必阅读升级提示:关于BasePopup 3.0的破坏性更新说明

更新日志 (历史更新)

  • 【Release】3.2.0 (2021/10/15)
    • 时隔两个月,在吸纳了用户反馈的意见后,我们对BasePopup进行了一系列的优化,经过一段时间的测试,已经趋于稳定,因此我们正式发布3.2.0版本,欢迎更新下载。
    • 【优化】
      • 针对历史遗留问题,我们这次统一了match_parent和wrap_content下根布局margin的作用,现在该作用跟系统一致,用作margin而非offset。
      • 现在setFitSize()方法缺省值为True,即BasePopup会在空间不足时默认调整大小以满足显示,如果您不希望BasePopup自动调整大小,请设置该方法为False。
        • 设置镜像时自动关闭fitSize并缓存原来的值
      • QuickPopup添加新增Api,同时修改QuickPopupConfig的实现,使代码更为清爽整洁。
    • 【Bug修复】
      • 修复measure问题:#435
      • 修复默认关联AnchorView时,水平方向上显示在目标左边而不是对齐左边缘的问题
      • 修复旋转屏幕时update错误的问题
      • 修复事件分发问题:#443
    • 【新增功能】
      • 增加dismiss时不隐藏键盘的功能:hideKeyboardOnDismiss(boolean)
    • 【其他】
      • 清除所有标记过时的方法

例子预览

更多例子请下载Demo:apk体验下载(密码123)


打赏(您的支持是我持续更新的动力~)

Logo图片似乎加载不出来

交流群

为了保证微信群的质量(主要是远离斗图党和广告党),因此只有打赏了之后才能进群~

打赏后请加微信小号:razerdp_test,并注明付款账号,定期核验后会通过

License

FOSSA Status

Apache-2.0

Visit Count(from 2020/08/19)

basepopup's People

Contributors

razerdp avatar 430public avatar dadengpao avatar parfoismeng avatar bryant1410 avatar hshare avatar hunter524 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.