Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Kostya Vasilyev
"dip" and "dp" are exactly the same thing. http://developer.android.com/guide/topics/resources/more-resources.html#Dimension: >> The compiler accepts both "dip" and "dp", though "dp" is more consistent with "sp". << -- Kostya 30.06.2011 14:16, Marcin Orlowski пишет: Why not start using dip i

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Kostya Vasilyev
Adam, For your specific requirements, aligning UI elements with a background image, you may be better off writing your own ViewGroup subclass, which would combine in one place two pieces: - The logic to resize the background image based on actual screen (rather, view) dimensions; - The logic

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Marcin Orlowski
On 30 June 2011 11:58, Serdel wrote: > PS: I have read the 'Supporting Multiple Screens' article from > dev.android.com, so please don't paste the link. I tried to read it > carefully but if you think I must have missed sth. than feel free to > point out where is the answer to my problem on that

Re: [android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Marcin Orlowski
> > PS: I have also another question that is a little bit connected: how > to distinguish 480x800 and 480x854, or 240x400 and 240x432 to provide > different drawables for them? > There's no difference in DPI between 480x800 and 480x854 or 240x400 and 240x432 so you can't. And you also should not b

[android-developers] Screen sizes and precise element placement.

2011-06-30 Thread Serdel
I have a problem with supporting different screen sizes. My application has different drawables for mdpi (320x480), hdpi (480x800) or ldpi (240x432). I also have different layout for small, normal- notlong, normal-long. Every size scaling or placement features are done in dp. However my problem is