I have developed a clock widget. And I only have 1 res/layout and 1 res/drawable. Everything works perfectly.
It works on mdpi like Samsung Galaxy Ace. It works on hdpi like Samsung Galaxy S2. It works on xhdpi like Samsung Galaxy Note.
However I got ugly look on 720×1280 devices such as Samsung Galaxy Nexus or Sony Xperia S. And coming soon Samsung Galaxy S3.
When I provide res/layout/xhdpi which I built specifically for 720×1280 devices and then Galaxy Note will also use this layout and it looks ugly on Galaxy Note.
How to address this issue?
It is like some crossing between 720×1280 (Galaxy Nexus, Sony Xperia S, Galaxy S3) and 800×1280 (Galaxy Note).
The resolution and DPI of the device don’t necessarily match up (high resolution doesn’t mean high DPI). DPI is a ratio of the resolution of the device and its physical dimensions.
Instead of separating your layout folders by DPI, separate them by dimensions. For instance,
layout-large,layout-xlarge. You can also quantify by specific sizes, such aslayout-w720-h1280, in which case that would match only device with a minimum width of 720 pixels and minimum height of 1280 pixels.