{"id":15133026,"url":"https://github.com/razerdp/basepopup","last_synced_at":"2025-05-14T02:00:35.890Z","repository":{"id":38265649,"uuid":"49694044","full_name":"razerdp/BasePopup","owner":"razerdp","description":" Android下打造通用便捷的PopupWindow弹窗库","archived":false,"fork":false,"pushed_at":"2024-01-04T06:27:37.000Z","size":20627,"stargazers_count":5222,"open_issues_count":30,"forks_count":763,"subscribers_count":77,"default_branch":"master","last_synced_at":"2025-04-27T05:49:25.589Z","etag":null,"topics":["android","popup","popup-menu","popup-window","popup-windows","popupwindow"],"latest_commit_sha":null,"homepage":"https://github.com/razerdp/BasePopup","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/razerdp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-01-15T03:31:07.000Z","updated_at":"2025-04-16T07:44:18.000Z","dependencies_parsed_at":"2023-01-31T07:01:04.133Z","dependency_job_id":"cc659625-1045-41df-a023-8b0553427a42","html_url":"https://github.com/razerdp/BasePopup","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razerdp%2FBasePopup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razerdp%2FBasePopup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razerdp%2FBasePopup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razerdp%2FBasePopup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razerdp","download_url":"https://codeload.github.com/razerdp/BasePopup/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254052658,"owners_count":22006716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","popup","popup-menu","popup-window","popup-windows","popupwindow"],"created_at":"2024-09-26T04:43:20.991Z","updated_at":"2025-05-14T02:00:35.827Z","avatar_url":"https://github.com/razerdp.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":" **中文** | [**English**](./README_V2_EN.md)\r\n\r\n\u003cp align=\"center\"\u003e\u003cimg src=\"./img/logo.png\" alt=\"Logo图片似乎加载不出来\" height=\"360\"/\u003e\u003c/p\u003e\r\n\u003ch2 align=\"center\"\u003eBasePopup - Android下打造通用便捷的PopupWindow弹窗库\u003c/h2\u003e\r\n\u003cdiv align=\"center\"\u003e\r\n\r\n\u003ctable align=\"center\"\u003e\r\n        \u003ctr\u003e\r\n            \u003cth align=\"center\" width=\"9999\"\u003eRelease\u003c/th\u003e\r\n            \u003cth align=\"center\" width=\"9999\"\u003eSnapshot\u003c/th\u003e\r\n            \u003cth align=\"center\" width=\"9999\"\u003eLicense\u003c/th\u003e\r\n\t\t\t\u003cth align=\"center\" width=\"9999\"\u003eApi\u003c/th\u003e\r\n\t\t\t\u003cth align=\"center\" width=\"9999\"\u003eAuthor\u003c/th\u003e\r\n        \u003c/tr\u003e\r\n           \u003ctr\u003e\r\n                    \u003ctd align=\"center\"\u003e\r\n        \t\t\t\t\u003ca href =\"https://search.maven.org/artifact/io.github.razerdp/BasePopup\"\u003e\r\n        \t\t\t\t\t\u003cimg src=\"https://img.shields.io/maven-central/v/io.github.razerdp/BasePopup\"/\u003e\r\n        \t\t\t\t\u003c/a\u003e\r\n        \t\t\t\u003c/td\u003e\r\n        \t\t\t\u003ctd align=\"center\"\u003e\r\n        \t\t\t\t\u003ca href = \"https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/razerdp/BasePopup/\"\u003e\r\n        \t\t\t\t\t\u003cimg src=\"https://img.shields.io/nexus/s/io.github.razerdp/BasePopup?server=https%3A%2F%2Fs01.oss.sonatype.org%2F\"/\u003e\r\n        \t\t\t\t\u003c/a\u003e\r\n        \t\t\t\u003c/td\u003e\r\n        \t\t\t\u003ctd align=\"center\"\u003e\r\n        \t\t\t\t\u003ca href = \"https://github.com/razerdp/BasePopup/blob/master/LICENSE\"\u003e\r\n        \t\t\t\t\t\u003cimg src=\"https://img.shields.io/badge/license-Apache--2.0-blue.svg\"/\u003e\r\n        \t\t\t\t\u003c/a\u003e\r\n        \t\t\t\t\u003cbr\u003e\u003c/br\u003e\r\n        \t\t\t\t\u003ca href = \"https://github.com/razerdp/BasePopup/blob/master/LICENSE_996\"\u003e\r\n                        \t\u003cimg src=\"https://img.shields.io/badge/license-Anti%20996-blue.svg?style=flat-square\"/\u003e\r\n                        \u003c/a\u003e\r\n        \t\t\t\u003c/td\u003e\r\n        \t\t\t\u003ctd align=\"center\"\u003e\r\n        \t\t\t\t\u003ca href=\"https://img.shields.io/badge/Api-19%2B-green.svg\"\u003e\r\n        \t\t\t\t\t\u003cimg src=\"https://img.shields.io/badge/Api-19%2B-green.svg\"/\u003e\r\n        \t\t\t\t\u003c/a\u003e\r\n        \t\t\t\u003c/td\u003e\r\n        \t\t\t\u003ctd align=\"center\"\u003e\r\n        \t\t\t\t\u003ca href = \"https://github.com/razerdp\"\u003e\r\n        \t\t\t\t\t\u003cimg src=\"https://img.shields.io/badge/Author-razerdp-blue.svg\"/\u003e\r\n        \t\t\t\t\u003c/a\u003e\r\n        \t\t\t\u003c/td\u003e\r\n        \t\t\u003c/tr\u003e\r\n\u003c/table\u003e\r\n\r\n\u003c/div\u003e\r\n\r\n\r\n---\r\n\r\n### 作者的话\r\n\r\n由于工作繁忙，且目前issue问题影响并不大，因此本库维护速度较慢。\r\n\r\n同时希望大佬们也可以推送自己的PR，我这边review后会进行合并的~\r\n\r\n下一次更新大概在24年3月份\r\n\r\n### 介绍\r\n\r\nBasePopup是一个对系统PopupWindow进行封装并改进的弹窗库，它是一个基础库类，有着非常高的自由度与丰富的API，您可以在BasePopup的框架下非常轻松的完成各种各样的弹窗。\r\n\r\n### 环境依赖\r\n\r\n```groovy\r\n// root gradle\r\nallprojects {\r\n    repositories {\r\n        // release依赖仓库（4.1后as默认配置有）\r\n        mavenCentral()\r\n\r\n        // snapshot仓库（如果需要snapshot依赖，请配置该maven）\r\n        maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }\r\n    }\r\n}\r\n\r\n// project dependencies\r\ndependencies {\r\n  implementation 'io.github.razerdp:BasePopup:3.2.1'\r\n\r\n  // for snapshot\r\n  // implementation 'io.github.razerdp:BasePopup:3.2.1-SNAPSHOT'\r\n}\r\n\r\n```\r\n\r\n### 文档\r\n\r\n - [**BasePopup手册**](https://www.yuque.com/razerdp/basepopup)\r\n\r\n### 注意事项\r\n\r\n  - Release和Snapshot两个版本互相切换可能会导致Build失败，这时候您Clean一下Project即可\r\n  - 3.0版本会对2.x版本升级上来的用户造成较大范围的改动，请您务必阅读升级提示：[关于BasePopup 3.0的破坏性更新说明](./Update_3.0.md)\r\n\r\n\r\n### 更新日志 [(历史更新)](https://www.yuque.com/razerdp/basepopup/uyrsxx)\r\n\r\n* **【Release】3.2.1** (2022/12/29)\r\n    * 不知不觉，距离上次更新居然已经一年了，不是我弃坑了，实则是工作有点忙\r\n    * 另外作者我现在是在网易撸游戏了（嗯，已经撸了3年了），已经不是一个单纯的安卓程序员了，虽然还有关注并且迭代，但节奏肯定会慢下来不少\r\n    * 不过~我还是会坚持更新的-V-\r\n    * 【优化】\r\n        * 对BlurOption预缩放下限作出限制（如果模糊预缩放小于0，则返回默认值）\r\n        * QuickPopupConfig添加@keep [#462](https://github.com/razerdp/BasePopup/issues/462)\r\n    * 【Bug修复】\r\n        * 修复navigationbar不在DecorView层级下的判断问题（通过WindowInsets二次判断），fixed bug [#452](https://github.com/razerdp/BasePopup/issues/452)\r\n\r\n### 例子预览\r\n\r\n#### 更多例子请下载Demo：[**apk体验下载（密码123）**](https://www.pgyer.com/basepopup)\r\n\r\n\u003cimg src=\"./img/download.png\"  width=\"256\"/\u003e\r\n\r\n\u003cbr\u003e\r\n\r\n|  |  |  |\r\n| - | - | - |\r\n| ![](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) |\r\n| ![](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) |\r\n\r\n### 打赏（您的支持是我持续更新的动力~）\r\n\r\n\u003cimg src=\"https://github.com/razerdp/BasePopup/blob/master/img/alipay.png\" alt=\"Logo图片似乎加载不出来\" width=\"320\"/\u003e\r\n\r\n\r\n### License\r\n\r\n[![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)\r\n\r\n[Apache-2.0](./LICENSE)\r\n\r\n\r\n\u003cp align=\"center\"\u003e\r\n  Visit Count（from 2020/08/19）\u003cbr\u003e\r\n  \u003cimg src=\"https://profile-counter.glitch.me/razerdp-basepopup/count.svg\" /\u003e\r\n\u003c/p\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazerdp%2Fbasepopup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazerdp%2Fbasepopup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazerdp%2Fbasepopup/lists"}