Skip to content Skip to sidebar Skip to footer

Android Layouts For Same Density Different Diagonal Length

I have 2 different android phones. The details are nexus s: 480 x 800 pixels, 4.0 inches (~233 ppi pixel density) desire s: 480 x 800 pixels, 3.70 inches (~252 ppi pixel density)

Solution 1:

for different screen sizes use relative-layouts.. it will not cause the problem of different width on different phones

Solution 2:

First of all layout_hdpi and layout_xhdpi should be declared as layout-hdpi and layout-xhdpi. Secondly, HDPI refers to the range 161–240(ppi). So your Nexus phone is eligible for the HDPI qualifier, but your Desire S is eligible for XHDPI qualifier, because the range of xhdpi is 241–319.

Post a Comment for "Android Layouts For Same Density Different Diagonal Length"