Why Lint shows warning when using in (inch) or mm (millimeter) units as dimension?

Viewed 1278

Documentation clearly says that mm and in are screen size dependent.

mm
Millimeters - Based on the physical size of the screen.

in
Inches - Based on the physical size of the screen.

But when I use them, Lint says:

Avoid using "mm" as units (it does not work accurately on all devices); use "dp" instead

Is documentation wrong? And why Lint doesn't warn when using pt?

pt
Points - 1/72 of an inch based on the physical size of the screen.

1 Answers
Related