Option

class Option

An option is represented with at least a text. A drawable is optional but makes it easier to understand to the user.

Constructors

Link copied to clipboard
fun Option(@StringRes textRes: Int)
Link copied to clipboard
fun Option(text: String)
Link copied to clipboard
fun Option(@DrawableRes drawableRes: Int, titleText: String)
Link copied to clipboard
fun Option(drawable: Drawable, @StringRes titleTextRes: Int)
Link copied to clipboard
fun Option(drawable: Drawable, titleText: String)
Link copied to clipboard
fun Option(@DrawableRes drawableRes: Int, @StringRes titleTextRes: Int)
Link copied to clipboard
fun Option(    @DrawableRes drawableRes: Int,     titleText: String,     subtitleText: String? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    drawable: Drawable,     @StringRes titleTextRes: Int,     subtitleText: String? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    drawable: Drawable,     titleText: String,     subtitleText: String? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    @DrawableRes drawableRes: Int,     @StringRes titleTextRes: Int,     subtitleText: String? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    @DrawableRes drawableRes: Int,     titleText: String,     @StringRes subtitleTextRes: Int? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    drawable: Drawable,     @StringRes titleTextRes: Int,     @StringRes subtitleTextRes: Int? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    drawable: Drawable,     titleText: String,     @StringRes subtitleTextRes: Int? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    @DrawableRes drawableRes: Int,     @StringRes titleTextRes: Int,     @StringRes subtitleTextRes: Int? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    @StringRes titleTextRes: Int,     @StringRes subtitleTextRes: Int? = null,     longClickListener: OptionLongClickListener? = null)
Link copied to clipboard
fun Option(    titleText: String,     subtitleText: String,     longClickListener: OptionLongClickListener? = null)

Functions

Link copied to clipboard
fun defaultIconColor(@ColorInt color: Int): Option

Set default icon color.

Link copied to clipboard
fun defaultIconColorRes(@ColorRes colorRes: Int): Option

Set default icon color.

Link copied to clipboard
fun defaultSubtitleColor(@ColorInt color: Int): Option

Set default subtitle color.

Link copied to clipboard
fun defaultSubtitleColorRes(@ColorRes colorRes: Int): Option

Set default subtitle color.

Link copied to clipboard
fun defaultTitleColor(@ColorInt color: Int): Option

Set default title color.

Link copied to clipboard
fun defaultTitleColorRes(@ColorRes colorRes: Int): Option

Set default title color.

Link copied to clipboard
fun disable(): Option

Declare the option as disabled. Disabled options are not selectable anymore.

Link copied to clipboard
fun disabled(disabled: Boolean): Option

Declare the option as disabled. Disabled options are not selectable anymore.

Link copied to clipboard
fun preventIconTint(preventIconTint: Boolean): Option

Sheets applies by default a one-colored tint on the drawable representing an option. You can prevent this behavior in order to keep the original colors of the drawable.

Link copied to clipboard
fun select(): Option

Declare the option as already selected.

Link copied to clipboard
fun selected(selected: Boolean): Option

Declare the option as already selected.