Im developing an App which is going to be used on Samsung Galaxy SII and Samsung Galaxy tab 7.7 ONLY.
The sizes of all the UI elements have been specified in dp’s as recommended by the Android developer guide. As I understood it, this would ensure that elements maintain the same perceived size to the user across different screens.
My problem though is that all UI elements appear much smaller on the 7.7 inch device (around 2/3 of what they look like on the SII).
I would like them to be of equal size on the tablet, or perhaps even bigger.
I have tested the different unit formats for measuring size, and when i specify them in inch or mm they have the same size, and when in px they are bigger on the tablet..
But is it really the correct approach to use any of those 3 units, and if so, then why do Android recommend dp’s??
I hope anyone out there can clarify this 🙂
Dp works to use in most cases but if I were you i would specify different layout folders, in this case a layout-xlarge/ for your 7.7 inch device and a layout-normal/ for your Galaxy SII.
Then duplicate your layout xml files and put in these folders, and specify position/sizes according to the device that will use it.
Information from here: http://developer.android.com/guide/practices/screens_support.html#support