-
public final class IntExtKt
-
-
Method Summary
Modifier and Type Method Description final static IntegerdensityNormalized(Integer $self, Float density)Normalizes an Int value (font size, view dimension, view position, etc.) according with the device pixels density. -
-
Method Detail
-
densityNormalized
final static Integer densityNormalized(Integer $self, Float density)
Normalizes an Int 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.
-
-
-
-