Package com.drake.engine.dialog

Functions

alert
Link copied to clipboard
fun Activity.alert(block: AlertDialog.Builder.() -> Unit): AlertDialog
警告对话框
medium
Link copied to clipboard
fun AlertDialog.Builder.medium(@StringRes() text: Int, block: AlertDialog.() -> Unit = {})
fun AlertDialog.Builder.medium(text: String, block: AlertDialog.() -> Unit = {})
no
Link copied to clipboard
fun AlertDialog.Builder.no(@StringRes() text: Int, block: AlertDialog.() -> Unit = {})
fun AlertDialog.Builder.no(text: String, block: AlertDialog.() -> Unit = {})
progress
Link copied to clipboard
fun Activity.progress(msg: String? = null, block: ProgressDialog.() -> Unit = {}): ProgressDialog
进度对话框
pullMenu
Link copied to clipboard
fun View.pullMenu(vararg list: String): ListPopupWindow
fun View.pullMenu(list: List<String>): ListPopupWindow
下拉菜单
setDivider
Link copied to clipboard
fun AlertDialog.setDivider(@DrawableRes() divider: Int)
设置列表对话框的分割线 分割线的间距由Drawable来控制
setTransparent
Link copied to clipboard
fun Dialog.setTransparent()
设置背景透明
setWidthNoLimit
Link copied to clipboard
fun DialogFragment.setWidthNoLimit()
解决DialogFragment宽度限制问题
yes
Link copied to clipboard
fun AlertDialog.Builder.yes(@StringRes() text: Int, block: AlertDialog.() -> Unit = {})
fun AlertDialog.Builder.yes(text: String, block: AlertDialog.() -> Unit = {})