Notes &
Converting from DIP units to Pixels on Android
Using TypedValue is the correct method for converting between device independent pixels and native pixels. If Google happens to change the baseline DPI, your code will continue to work.
Notes &
Using TypedValue is the correct method for converting between device independent pixels and native pixels. If Google happens to change the baseline DPI, your code will continue to work.