# poplayer
**Repository Path**: iforgive/poplayer
## Basic Information
- **Project Name**: poplayer
- **Description**: 弹窗管理框架
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-02-23
- **Last Updated**: 2022-02-23
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

# PoupoLayer
一个通用的Android端弹窗管理框架,支持带网络请求的业务流程管理,内部维护弹窗优先级队列 具备弹窗管理扩展功能 整合Dialog,PoupoWindow,悬浮Widget,透明Webview,Toast,SnackBar,无需再为繁琐的业务弹窗逻辑所困扰
## 如何添加依赖
只需要两行代码轻松接入
```groovy
//add this to your repositories
maven { url 'https://www.jitpack.io' }
//add this to your dependencies
implementation 'com.github.MrCodeSniper:PopLayer:3.0.2'
```
## 具体如何使用
### 1.根据策略创建对应的弹窗view
```java
//Dialog布局形式
PopLayerView mLayerView = new PopLayerView(this,R.layout.common_dialog_upgrade_app);
//自定义Dialog形式
NoticePopDialog hrzNoticePopDialog = new NoticePopDialog(this);
PopLayerView mLayerView = new PopLayerView(this,hrzNoticePopDialog);
//透明Webview形式
PopLayerView mLayerView = new PopLayerView(this,LayerConfig.redPocketScheme);
//取得对应的弹窗实体
PopLayerView