-
public final class LongExtKt
-
-
Method Summary
Modifier and Type Method Description final static LongdensityNormalized(Long $self, Float density)Normalizes a Long value (font size, view dimension, view position, etc.) according with the device pixels density. -
-
Method Detail
-
densityNormalized
final static Long densityNormalized(Long $self, Float density)
Normalizes a Long value (font size, view dimension, view position, etc.) according with the device pixels density. Example: if a device has a DPI = 2, the normalized height of a view will be view.height/2.
-
-
-
-