For now, I "fixed" my widget on 2.3 by going from a monolithic 322px
high background drawable to smaller drawables.  Of course, I shouldn't
have to do that, but whatever...

If you place any widgets on 2.3 and compare it to 2.2, you can see
that they are spaced differently.  On 2.3, they are a lot closer to
each other vertically and there is more (unused) room above the phone/
app/browser standard buttons.  So it appears that 2.3 has shrunk the
physical height of one widget cell.

On Dec 29, 4:36 pm, Kostya Vasilyev <[email protected]> wrote:
> 29.12.2010 5:23, Mark Murphy пишет:
>
> > On Tue, Dec 28, 2010 at 9:15 PM, Zsolt Vasvari<[email protected]>  wrote:
> >> Sorry, what's your point?  Those docs haven't been updated since 1.5
> >> and they assume a 320x480 screen.
> > I am fairly certain that document is newer than 1.5, but, never mind.
>
> > I have an Android 2.3 device. I have tried some third-party app
> > widgets (Ambling, Remember the Milk, Extended Controls). None appear
> > to have 11px cropped off the bottom. Hence, the problem  you are
> > experiencing may solely be with the 2.3 emulator. It wouldn't be the
> > first reported problem.
>
> My observations match Zsolt's (not regarding 2.3, but rather widget
> sizing in general).
>
> The sizes and artwork templates in the guidelines only work for HVGA
> devices and for high-res devices in portrait mode (because portrait
> screen width scales the same way as the device's dpi value).
>
> On high-res devices in landscape mode, the templates don't line up (esp.
> when you consider that 800 and 854 pixel wide hdpi screens use equal
> scaling but different home screen layouts).
>
> On QVGA the templates fail for both portrait and landscape modes.
>
> For anyone interested: take standard 4x1 landscape widget width per the
> above document, 424dp. Scale that to pixels at ldpi resolution - you get
> 318. The screen is 320 pixels wide, but the app drawer handle takes more
> than 2 pixels, so widgets actually have smaller width than in the docs.
>
> What would really help, IMHO, is if there was a special dimension unit
> for widgets: one home screen cell. Then one could specify widget layout
> size as, e.g., "2wc" by "1wc" ("widget cell") and use margins expressed
> in "dp" to add space between widgets.
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to