I have a strange problem with Android Studio Designer.
I try to work with my layouts so that they match the size and density of the screen.
I am so much so that I need to set different text sizes for different labels. Some more, some less.
So, I created a couple of dimens.xml files (one for small and one for large, not forgetting one by default) so that I can see what it will look like on a very small device and a rather large device.
Using the constructor and Nexus 4, I find myself in a strange situation: while the preview with "Nexus 4" in Android Studio shows good sizes, the end result is terrible. Firstly, I found that either my Nexus 4 or my Galaxy Note 3 use large/dimens.xml. They both use the same thing: value/dimens.xml . How so? Not the same screen size, not even the same density and resolution!
So, although I am setting specific dimensions in my XML files, and although Android Studio Designer shows a good relationship on "Nexus 4", my application does not at all reflect what I see on the designer! What for? Smaller texts look large, large texts look too large ... overall, everything is disproportionate on both my Nexus 4 and GN 3!
Additional info: I use Android Studio to develop all my layouts and resources. I use Xamarin for my work. I made sure all the XML files are the same on both IDEs. To prove that I'm not mistaken, both IDE designers showing the result on the same device preview (Nexus 4) show exactly the same ratios. Meaning, correct sizes are used. So why don't I see the same thing on my "real" Nexus 4?
Thanks for the help!
source share