DialogListItem

data class DialogListItem @JvmOverloads constructor(@StringRes val key: Int, @DrawableRes val icon: Int = 0, val isAlert: Boolean = false, val isDisabled: Boolean = false)

A Single item of selectable dialog list.

Parameters

key

the resource identifier of the string resource to be displayed.

icon

Resource identifier of the icon Drawable.

isAlert

Determine whether the item text uses an error color. If it sets true, the text color will be shown as an error color.

isDisabled

Determine whether to disable the item.

Constructors

Link copied to clipboard
fun DialogListItem(@StringRes key: Int, @DrawableRes icon: Int = 0, isAlert: Boolean = false, isDisabled: Boolean = false)

Properties

Link copied to clipboard
val icon: Int = 0

Returns an icon of item.

Link copied to clipboard
val isAlert: Boolean = false

Returns the item text uses error color.

Link copied to clipboard
val isDisabled: Boolean = false

Returns the item is disabled.

Link copied to clipboard
val key: Int

Returns a key of item.