CustomDpEntry

data class CustomDpEntry(val uiModeType: UiModeType? = null, val dpQualifierEntry: DpQualifierEntry? = null, val customValue: Dp, val priority: Int)

EN Represents a custom dimension entry with qualifiers and priority. Used by the Scaled class to define specific values for screen conditions.

PT Representa uma entrada de dimensão customizada com qualificadores e prioridade. Usada pela classe Scaled para definir valores específicos para condições de tela.

Parameters

uiModeType

The UI mode (CAR, TELEVISION, WATCH, NORMAL). Null for any mode.

dpQualifierEntry

The Dp qualifier entry (type and value, e.g., SMALL_WIDTH 600). Null if only UI mode is used.

customValue

The Dp value to be used if the condition is met.

priority

The resolution priority. 1 is more specific (UI + Qualifier), 3 is less specific (Qualifier only).

Constructors

Link copied to clipboard
constructor(uiModeType: UiModeType? = null, dpQualifierEntry: DpQualifierEntry? = null, customValue: Dp, priority: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val dpQualifierEntry: DpQualifierEntry? = null
Link copied to clipboard
Link copied to clipboard
val uiModeType: UiModeType? = null