Just scale your coordinates based on the screen density. You can't assume some specific size for some screen -- consider the possibilities, QVGA, HVGA, WVGA, FWVGA all have different proportions. And then a particular app may use the screen differently, for example in the future home will probably have some redesign so that on a FWVGA screen there is not such a difference in proportion between its landscape and portrait layouts.
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
-- On Sun, Nov 1, 2009 at 7:40 AM, sdphil <phil.pellouchoud@gmail.com> wrote:
not sure I follow you here --
T-Mobile G1/G2 has the following specs -
320px x 480px (pixels)
1.77" x 2.65" (inches)
which gives about 181 dpi.
according to this --
http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
4x1 widgets on T-Mobile G1 and G2 should be 320x100 in portrait
and 424x74 in landscape.
Motorola Droid has the following specs -
480px x 854px (pixels)
1.8" x 3.2" (inches)
which gives about 267 dpi.
4x1 widgets for both portrait and landscape on something like Droid
should be what?
According to what you said "Multiply by 1.5"
320*1.5 x 100*1.5 = 480 x 150 portrait
424*1.5 x 74*1.5 = 636 x 111 landscape
I can believe it for portrait, but for landscape, that doesn't seem
right.
tia.
On Oct 31, 3:11 pm, Dianne Hackborn <hack...@android.com> wrote:
> It's not the number of pixels, it's the density.
>
>
>
> On Sat, Oct 31, 2009 at 12:10 PM, sdphil <phil.pellouch...@gmail.com> wrote:> > > > android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@googlegroups.com><android-developers%2Bunsubs
> > That makes sense for portrait (480 / 320 = 1.5) but for fwvga in
> > landscape, 854 / 480 = 1.78.
>
> > On Oct 31, 10:55 am, Dianne Hackborn <hack...@android.com> wrote:
> > > Multiply by 1.5.
>
> > > On Sat, Oct 31, 2009 at 8:23 AM, sdphil <phil.pellouch...@gmail.com>
> > wrote:
> > > > what are the 4x1 app widget sizes for WVGA and FWVGA in both portrait
> > > > and landscape?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> > android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > cribe@googlegroups.com>> > android-developers+unsubscribe@googlegroups.com<android-developers%2Bunsubscribe@googlegroups.com>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails. All such
> > > questions should be posted on public forums, where I and others can see
> > and
> > > answer them.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails. All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Dianne Hackborn
Android framework engineer
hackbod@android.com
Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them.
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment