Package com.maxkeppeler.sheets.option

Types

Link copied to clipboard
enum DisplayMode : Enum<DisplayMode>

The display modes that can be used. LIST, GRID_HORIZONTAL

Link copied to clipboard
class Info

A info section that is displayed above all options.

Link copied to clipboard
class Option

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

Link copied to clipboard
typealias OptionListener = (index: Int, option: Option) -> Unit

Listener which returns the selected index and the respective option. If multiple choices is enabled, this listener will return nothing. Use the OptionsListener.

Link copied to clipboard
typealias OptionLongClickListener = () -> Unit

Listener that is invoked when an option view is long clicked. This could be used to initiate another action e. g. editing the option in another sheet.

Link copied to clipboard
class OptionSheet : Sheet

The OptionSheet lets you display a grid or list of options.

Link copied to clipboard
typealias OptionsListener = OptionSheet.(selectedIndices: MutableList<Int>, selectedOptions: MutableList<Option>) -> Unit

Listener which returns the selected option's index and text.