PreferenceItemSetup

data class PreferenceItemSetup(val trailingContentSize: PreferenceItemSetup.TrailingContentSize = TrailingContentSize(), val ignoreForceNoIconInset: Boolean = false, val minHeight: Dp = 56.dp, val minSubTitleExtraHeight: Dp = 16.dp, val contentPlacementBottom: Boolean = false, val alignment: Alignment.Vertical = Alignment.CenterVertically, val hideTitle: Boolean = false, val excludeFromSectionStyle: Boolean = false)

this provides a class to define some custom setup to customise a preference item

Parameters

trailingContentSize

the TrailingContentSize for a preference item

ignoreForceNoIconInset

if true, the preference item will ignore the flag from PreferenceSettings.forceNoIconInset

minHeight

the forced minimum height for the preference item

minSubTitleExtraHeight

the forced minimum height addition if the preference item has a sub title

contentPlacementBottom

if true, the content of this item will be place below the title/subtitle instead of behind it as trailing content

alignment

the alignment of the preference item content

hideTitle

if true, the title will not be displayed (allows the content to take up its place)

excludeFromSectionStyle

if true, the item will not be styled as a section item and will break the section style up if it is placed in the middle of a section

Constructors

Link copied to clipboard
constructor(trailingContentSize: PreferenceItemSetup.TrailingContentSize = TrailingContentSize(), ignoreForceNoIconInset: Boolean = false, minHeight: Dp = 56.dp, minSubTitleExtraHeight: Dp = 16.dp, contentPlacementBottom: Boolean = false, alignment: Alignment.Vertical = Alignment.CenterVertically, hideTitle: Boolean = false, excludeFromSectionStyle: Boolean = false)

Types

Link copied to clipboard

this provides a class to define size constraints for a preference item

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard