Q:

Normalized screen size in Android

In one of my Activities I'd like to adjust an amount of textual content according to current screen size. What metric should I rely on? 
Just width in pixels seems not too reliable since font scaling can be very different. On the other hand DisplayMetrics's DENSITY_280, DENSITY_400 ... seem too broad. Is there any normalized metric available like width_in_pixels * font_scaling?
Just in case: My min SDK verion is 15 (4.0.3)

A:

you can get values like dpi from DisblayMetrics , look here docs
also, there is a built-in converter for different size metrics in api, TypedValue.applyDimension() , which can be used to get pixels from sp or dp

