Hi Justin, I was contemplating writing my own layout manager for this task, but don't know if it's necessary. I have a list of 8 panels to show, whether they all fit on screen or not (they're housed in a ListView). This is like a default set of buttons:
"Apple" "Orange" ... "Grape" If I can see that the screen is tall enough to hold a few additional items, I'd like to add one or two additional panels: += "Lemon" "Pear" so it's not critical, but would be nice if I could maximize the number of elements in the list (without scrolling) before the UI is displayed for the first time, Thanks On Dec 3, 2:28 pm, justinh <[email protected]> wrote: > Remember there are separate layout files that will be used for > portrait and landscape mode. And you should always avoid using an > AbsoluteLayout. Sounds like you might get into a messy situation with > all the hardware out there. > > Can you give a little more context for your question? > > On Dec 3, 2:21 pm, Mark Wyszomierski <[email protected]> wrote: > > > Hi, > > > Is there always a concept of portrait mode for devices? If so, can we > > get what the height of the device is in portrait mode? I'm using this: > > > DisplayMetrics dm = new DisplayMetrics(); > > getWindowManager().getDefaultDisplay().getMetrics(dm); > > > but width and height get swapped depending on orientation of the G1. > > > Thanks > > -- 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

