I found these two links:

http://android-developers.blogspot.com/2009/10/support-for-additional-screen.html

http://d.android.com/guide/practices/screens_support.html

On Dec 3, 5:23 pm, Greg Donald <[email protected]> wrote:
> On Thu, Dec 3, 2009 at 4:05 PM, Dianne Hackborn <[email protected]> wrote:
> > Please please please do not use Display to do your layout.  This tells you
> > the raw size of the display; it is not directly associated with the UI.
> > The correct way to do this kind of stuff, always, is to do the layout during
> > the layout pass.  Please don't skimp on this.  It is VERY IMPORTANT that you
> > participate in the framework in the right way here, using the size
> > information available in the view hierarchy as part of layout, to make sure
> > you do the right thing!!!  Otherwise you can expect to run in to problems in
> > the future as you encounter devices with new and interesting kinds of
> > screens.  We do a lot of work in the framework to help applications deal
> > with this, but if you go behind its back with Display and otherwise don't
> > participate as a good citizen, it can't help and you will have troubles.
> > Also, if you just want to find out whether you are running on a portrait or
> > landscape orientation, please just use getResources().getConfiguration() and
> > look at the orientation there.  Again, Display is a low-level facility and
> > not what you want.  DO NOT USE IT.
> > Thanks.
>
> Feels like I just got in trouble but didn't get told exactly what I did wrong.
>
> 1) What is "the layout pass" ?  Is this when main.xml gets expanded?
> Are we expected to maintain a separate layout for every resolution?
> That's a lot of work if that's the plan.
>
> 2) Don't skimp on what?  No idea.
>
> 3) I find the idea of "new and interesting kinds of screens" very
> similar to supporting both IE and Firefox.  Not fun, lots of dread,
> and in the end I always have to write special code for one or the
> other, just like I'm now doing for Android's different resolutions.
> Sorry if this is wrong, guess I missed something in the docs, got a
> "how to contend with different resolutions" URL handy?
>
> --
> Greg Donaldhttp://destiney.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