Android 自定义弹窗

弹出顶部弹窗

获取弹窗
DialogTop dialogTop=new DialogTop(this);

自定义视图
View viewTop = dialogTop.showTopDialog(R.layout.top_dialog);

关闭弹窗
dialogTop.closeTopDialog();

弹出中间弹窗

获取弹窗
DialogMiddle dialogMiddle=new DialogMiddle(this);

自定义视图
View viewMiddle = dialogMiddle.showMiddleDialog(R.layout.middle_dialog);

关闭弹窗
dialogMiddle.closeMiddleDialog();

弹出底部弹窗

获取弹窗
DialogBottom dialogBottom=new DialogBottom(this);

自定义视图
View viewBottom = dialogBottom.showBottomDialog(R.layout.bottom_dialog);

关闭弹窗
dialogBottom.closeBottomDialog();


github 点击打开链接

你可能感兴趣的:(android)