Convert iOS PT to Android DP?

I have an iOS app style guide that indicates height, width, padding, font size, etc. in PT (1x as the base). I have successfully converted them in pixels for various iPhones, such as iPhone 5,6,6s Plus, 7, iPad.

Now I need to use the same leadership style for the Android app, but I don’t know how can I convert iOS PT to Android port or pixel?

Is there any general method or something that can indicate how: 30pt 1x iOS converts to X dp (or pixel) mdpi android?

I searched, but could not find a hint of it. If someone helped me here, that would be great.

+4
source share
1 answer

, DP PT IOS. . , .

, , , , @2x . , , PT/DP. . PT/DP 1x ( "" ) . iPhone 4/4S 320x480, 640x960. Android - , . - 1080p (DP) , , .

+2

Source: https://habr.com/ru/post/1671002/


All Articles