AppDialog
Functions
Link copied to clipboard
fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int = R.style.app_dialog, gravity: Int = Gravity.NO_GRAVITY, widthRatio: Float = DEFAULT_WIDTH_RATIO, x: Int = 0, y: Int = 0, horizontalMargin: Float = 0.0f, verticalMargin: Float = 0.0f, horizontalWeight: Float = 0.0f, verticalWeight: Float = 0.0f, cancelable: Boolean = true): Dialog
创建对话框
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int = R.style.app_dialog, gravity: Int = Gravity.NO_GRAVITY, widthRatio: Float = DEFAULT_WIDTH_RATIO, x: Int = 0, y: Int = 0, horizontalMargin: Float = 0.0f, verticalMargin: Float = 0.0f, horizontalWeight: Float = 0.0f, verticalWeight: Float = 0.0f, cancelable: Boolean = true)
显示对话框
Link copied to clipboard
fun showDialogFragment(fragmentManager: FragmentManager, dialogFragment: DialogFragment, tag: String)
显示DialogFragment