Jelly Jelly - 1 month ago 18
Android Question

Android layout alternative resources

I have an issue with android layouts. I have different values for dimensions (in dp) for each screen size category

small, normal, large, xlarge
used in my layout, but for some reason my layout still looks way bigger on galaxy s2 compared with xperia s although they both have 4.3 inches. Shouldn't android take care automatically of that? Am I missing something? I think using
sw
will add too much overhead since I'd have many
values-sw
folders.

Answer

It turns out that its not such a big difference (it looked that way because textviews don't split the words at the end of the line) after all, but still there is about 20dp extra space in xperia s width. Which I think its normal for android since the docs say:

normal screens are at least 470dp x 320dp

Comments