On Thu, Dec 3, 2009 at 2:23 PM, Greg Donald <[email protected]> wrote:
> Feels like I just got in trouble but didn't get told exactly what I did > wrong. > Sorry. > 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. > The normal layout mechanism of the view hierarchy. This tells each view exactly how much space it has available to it, and allows it to take care of placing (or otherwise managing) its children. It is how all of the standard layout managers work -- LinearLayout, FrameLayout, RelativeLayout, etc. > 2) Don't skimp on what? No idea. > Doing proper layout. > 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? > http://developer.android.com/guide/practices/screens_support.html You should also be able to make good use of the various screen characteristics (small, normal, large, long, notlong, port, land) to adjust your UI in structural ways. You can use these to drive resource selection so that, for example, your main layout includes another layout at its bottom that only has content on "long" devices to take advantage of the extra space. This kind of resource selection is described here: http://developer.android.com/guide/topics/resources/resources-i18n.html#AlternateResources -- Dianne Hackborn Android framework engineer [email protected] 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 [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

