Chinese | English
BasePopup is a popup library that wraps and improves on the system's PopupWindow. It is a basic library class with a high degree of freedom and a rich API that allows you to do a wide range of popups very easily within the framework of BasePopup.
// root gradle
allprojects {
repositories {
// release dependency repository (available after 4.1 as default configuration)
mavenCentral()
// snapshot repository (if you need snapshot dependency, please configure this maven)
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}
}
// project dependencies
dependencies {
implementation 'io.github.razerdp:BasePopup:3.1.8'
// for snapshot
// implementation 'io.github.razerdp:BasePopup:3.1.8-SNAPSHOT'
}
- Switching between Release and Snapshot versions may cause the Build to fail, so you can clean the Project.
- Version 3.0 will cause a large range of changes to users who have upgraded from version 2.x. Please be sure to read the upgrade instructions:关于BasePopup 3.0的破坏性更新说明
ChangeLog (History ChangeLog)
- [Release] 3.2.0 (2021/10/15)
- After two months, we have made a series of optimizations to BasePopup after taking in user feedback. After a period of testing, it has stabilized, so we officially release version 3.2.0, welcome to update and download.
- [Optimization]
- To address the historical problems, we have unified the role of the root layout margin under match_parent and wrap_content this time, now the role is consistent with the system, used as margin instead of offset.
- The default value of
setFitSize()
method is now True, which means BasePopup will resize by default to meet the display when there is not enough space, if you don't want BasePopup to resize automatically, please set this method to False.- Automatically turn off fitSize when setting mirroring and cache the original value
- Add new Api to QuickPopup, and modify the implementation of QuickPopupConfig to make the code more refreshing and neat.
- [Bug fix]
- [New features
- Add the function of not hiding the keyboard when dismiss:
hideKeyboardOnDismiss(boolean)
- Add the function of not hiding the keyboard when dismiss:
- [Other]
- Clear all marker obsolete methods
Translated with www.DeepL.com/Translator (free version)