Skip to content

Latest commit

 

History

History
133 lines (104 loc) · 6.02 KB

README_V2_EN.md

File metadata and controls

133 lines (104 loc) · 6.02 KB

Chinese | English

Logo load failed

BasePopup - A powerful and convenient PopupWindow library for Android

Release Snapshot License Api Author



About

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.

Download

// 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'
}

Documentation

Precautions

  • 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的破坏性更新说明
  • [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]
      • Fix measure issue: #435
      • Fix the problem of displaying on the left side of the target horizontally instead of aligning the left edge when AnchorView is associated by default.
      • Fix the problem of update error when rotating the screen.
      • Fix the problem of event distribution: #443
    • [New features
      • Add the function of not hiding the keyboard when dismiss: hideKeyboardOnDismiss(boolean)
    • [Other]
      • Clear all marker obsolete methods

Translated with www.DeepL.com/Translator (free version)

Demo

Demo Apk Download:apk download(pass:123)


License

FOSSA Status

Apache-2.0

Visit Count(from 2020/08/19)