appdimens-dynamic

//AppDimens SDP, HDP, WDP: Scalable Width and Height Dimensions/com.appdimens.dynamic.common/UnitType

UnitType

enum UnitType : Enum<UnitType>

EN Defines the supported physical measurement units for conversion into density-independent pixels (Dp) or screen pixels (Px).

PT Define as unidades de medida física suportadas para conversão em pixels independentes de densidade (Dp) ou pixels de tela (Px).

private constructor()

INCH

CM

MM

SP

DP

PX

val entries: EnumEntries<UnitType>

Returns a representation of an immutable list of all enum entries, in the order they’re declared.

fun valueOf(value: String): UnitType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

fun values(): Array<UnitType>

Returns an array containing the constants of this enum type, in the order they’re declared.

Constructors

Name Summary
UnitType  

Entries

Name Summary
INCH  
CM  
MM  
SP  
DP  
PX  

Properties

Name Summary
entries  

Functions

Name Summary
valueOf  
values