I am working on an application based on Galaxy S at the moment. I know that Galaxy S is 480 px wide and 800 px tall, but how much is that in DP?
Lets say if I want to have two Layout side by side, I’ll have them setting to 240 px. But how do I know what value I should use in DP unit?
Found: http://developer.android.com/guide/practices/screens_support.html
[edit]
I just had to used this. Using the
DisplayMetrics.densityreturns only 0.75, 1 and 1.5. UseDisplayMetrics.densityDpiinstead or change the math topixels = dips * DisplayMetrics.density