AppDialog

App对话框:封装便捷的对话框API,使用时更简单

Author

Jenly

Entries

Link copied to clipboard

Functions

Link copied to clipboard
open fun createDialog(context: Context, contentView: View): Dialog
open fun createDialog(context: Context, config: AppDialogConfig): Dialog
open fun createDialog(config: AppDialogConfig, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, widthRatio: Float): Dialog
open fun createDialog(context: Context, config: AppDialogConfig, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, widthRatio: Float, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, widthRatio: Float): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, widthRatio: Float, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, horizontalMargin: Float, verticalMargin: Float, isCancel: Boolean): Dialog
open fun createDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, horizontalMargin: Float, verticalMargin: Float, horizontalWeight: Float, verticalWeight: Float, isCancel: Boolean): Dialog
创建弹框
Link copied to clipboard
open fun dismissDialog()
open fun dismissDialog(dialog: Dialog)
Link copied to clipboard
open fun dismissDialogFragment(dialogFragment: DialogFragment)
open fun dismissDialogFragment(fragmentManager: FragmentManager)
open fun dismissDialogFragment(fragmentManager: FragmentManager, tag: String)
Link copied to clipboard
open fun getDialog(): Dialog
获取Dialog
Link copied to clipboard
open fun showDialog(config: AppDialogConfig)
open fun showDialog(context: Context, contentView: View)
open fun showDialog(context: Context, config: AppDialogConfig)
open fun showDialog(config: AppDialogConfig, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, widthRatio: Float)
open fun showDialog(context: Context, config: AppDialogConfig, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, widthRatio: Float, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, widthRatio: Float)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, widthRatio: Float, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, horizontalMargin: Float, verticalMargin: Float, isCancel: Boolean)
open fun showDialog(context: Context, contentView: View, @StyleRes styleId: Int, gravity: Int, widthRatio: Float, x: Int, y: Int, horizontalMargin: Float, verticalMargin: Float, horizontalWeight: Float, verticalWeight: Float, isCancel: Boolean)
显示弹框
Link copied to clipboard
open fun showDialogFragment(fragmentManager: FragmentManager, dialogFragment: DialogFragment): String
open fun showDialogFragment(fragmentManager: FragmentManager, config: AppDialogConfig): String
open fun showDialogFragment(fragmentManager: FragmentManager, dialogFragment: DialogFragment, tag: String): String
显示DialogFragment
Link copied to clipboard
open fun valueOf(name: String): AppDialog

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<AppDialog>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.