DefaultDialogController

对话框控制器

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
open override fun dismissDialog()
open override fun dismissDialog(dialog: Dialog?)

关闭对话框

Link copied to clipboard
open override fun dismissProgressDialog()

关闭进度对话框

Link copied to clipboard
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)
Link copied to clipboard
open override fun setWindow(    window: Window?,     gravity: Int,     widthRatio: Float,     x: Int,     y: Int,     horizontalMargin: Float,     verticalMargin: Float,     horizontalWeight: Float,     verticalWeight: Float)

设置 Window 布局相关参数

Link copied to clipboard
open override fun showDialog(    contentView: View,     @StyleRes styleId: Int,     gravity: Int,     widthRatio: Float,     x: Int,     y: Int,     horizontalMargin: Float,     verticalMargin: Float,     horizontalWeight: Float,     verticalWeight: Float,     backCancel: Boolean)

显示对话框

Link copied to clipboard
open override fun showProgressDialog(layoutId: Int, cancel: Boolean)

显示进度对话框