# PopupDialog **Repository Path**: cbfg5210/PopupDialog ## Basic Information - **Project Name**: PopupDialog - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PopupDialog [![](https://jitpack.io/v/com.gitee.cbfg5210/PopupDialog.svg)](https://jitpack.io/#com.gitee.cbfg5210/PopupDialog) 为了方便使用 DialogFragment 和 PopupWindow,本库对二者进行了简单封装。其中 DialogFragment 的封装部分参考了 [所见即所得 dialog](https://juejin.im/post/6844903635122388999)。PopupWindow 的封装使用了 Builder 模式,通过 Builder 来创建使用。 封装代码直达: [BDialogFragment](https://gitee.com/cbfg5210/PopupDialog/blob/master/popup/src/main/java/cbfg/popup/BDialogFragment.kt)、 [PopupWindowBuilder](https://gitee.com/cbfg5210/PopupDialog/blob/master/popup/src/main/java/cbfg/popup/PopupWindowBuilder.kt) Demo 直达: [DFDemoFragment](https://gitee.com/cbfg5210/PopupDialog/blob/master/app/src/main/java/cbfg/popup/demo/DFDemoFragment.kt)、 [PopupWindowFragment](https://gitee.com/cbfg5210/PopupDialog/blob/master/app/src/main/java/cbfg/popup/demo/PopupWindowFragment.kt) ### 引入依赖 #### Step 1. Add the JitPack repository to your build file ```gradle allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` #### Step 2. Add the dependency ```gradle dependencies { implementation 'com.gitee.cbfg5210:PopupDialog:$version' } ```