Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razerdp/basepopup
Android下打造通用便捷的PopupWindow弹窗库
https://github.com/razerdp/basepopup
android popup popup-menu popup-window popup-windows popupwindow
Last synced: about 1 month ago
JSON representation
Android下打造通用便捷的PopupWindow弹窗库
- Host: GitHub
- URL: https://github.com/razerdp/basepopup
- Owner: razerdp
- License: apache-2.0
- Created: 2016-01-15T03:31:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T06:27:37.000Z (11 months ago)
- Last Synced: 2024-10-02T06:28:32.615Z (about 1 month ago)
- Topics: android, popup, popup-menu, popup-window, popup-windows, popupwindow
- Language: Java
- Homepage: https://github.com/razerdp/BasePopup
- Size: 19.7 MB
- Stars: 5,192
- Watchers: 79
- Forks: 757
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
**中文** | [**English**](./README_V2_EN.md)
BasePopup - Android下打造通用便捷的PopupWindow弹窗库
---
### 作者的话
由于工作繁忙,且目前issue问题影响并不大,因此本库维护速度较慢。
同时希望大佬们也可以推送自己的PR,我这边review后会进行合并的~
下一次更新大概在24年3月份
### 介绍
BasePopup是一个对系统PopupWindow进行封装并改进的弹窗库,它是一个基础库类,有着非常高的自由度与丰富的API,您可以在BasePopup的框架下非常轻松的完成各种各样的弹窗。
### 环境依赖
```groovy
// 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.1'// for snapshot
// implementation 'io.github.razerdp:BasePopup:3.2.1-SNAPSHOT'
}```
### 文档
- [**BasePopup手册**](https://www.yuque.com/razerdp/basepopup)
### 注意事项
- Release和Snapshot两个版本互相切换可能会导致Build失败,这时候您Clean一下Project即可
- 3.0版本会对2.x版本升级上来的用户造成较大范围的改动,请您务必阅读升级提示:[关于BasePopup 3.0的破坏性更新说明](./Update_3.0.md)### 更新日志 [(历史更新)](https://www.yuque.com/razerdp/basepopup/uyrsxx)
* **【Release】3.2.1** (2022/12/29)
* 不知不觉,距离上次更新居然已经一年了,不是我弃坑了,实则是工作有点忙
* 另外作者我现在是在网易撸游戏了(嗯,已经撸了3年了),已经不是一个单纯的安卓程序员了,虽然还有关注并且迭代,但节奏肯定会慢下来不少
* 不过~我还是会坚持更新的-V-
* 【优化】
* 对BlurOption预缩放下限作出限制(如果模糊预缩放小于0,则返回默认值)
* QuickPopupConfig添加@keep [#462](https://github.com/razerdp/BasePopup/issues/462)
* 【Bug修复】
* 修复navigationbar不在DecorView层级下的判断问题(通过WindowInsets二次判断),fixed bug [#452](https://github.com/razerdp/BasePopup/issues/452)### 例子预览
#### 更多例子请下载Demo:[**apk体验下载(密码123)**](https://www.pgyer.com/basepopup)
| | | |
| - | - | - |
| ![](https://github.com/razerdp/Pics/blob/master/BasePopup/demo_1.gif) | ![](https://github.com/razerdp/Pics/blob/master/BasePopup/new_demo_2.gif) | ![](https://github.com/razerdp/Pics/blob/master/BasePopup/demo_3.gif) |
| ![](https://github.com/razerdp/Pics/blob/master/BasePopup/demo_4.gif) | ![](https://github.com/razerdp/Pics/blob/master/BasePopup/demo_5.gif) | ![](https://github.com/razerdp/Pics/blob/master/BasePopup/demo_6.gif) |### 打赏(您的支持是我持续更新的动力~)
### License
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Frazerdp%2FBasePopup.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Frazerdp%2FBasePopup?ref=badge_large)
[Apache-2.0](./LICENSE)
Visit Count(from 2020/08/19)