It's done automatically for you by the platform. Say for example you have "my_layout.xml" in each of: res/layout-small res/layout-normal res/layout-large
When you load "my_layout.xml" the platform loads the correct one depending on the actual device characteristics. On Aug 10, 10:33 pm, dcrossmier <[email protected]> wrote: > How do you determine which layout to use? > > Thanks, > dcrossmier > > On Aug 10, 9:38 am, Moto <[email protected]> wrote: > > > Thanks Mark! > > > I really thought it was a smart idea but now that you put it that way > > I guess it is smarter to create a dynamic layout for small, normal and > > large... > > > So at the end of the day this would be the specific layout structure: > > res/layout-small > > res/layout-normal > > res/layout-large > > > Thanks, > > -Moto! > > > On Aug 9, 4:08 pm, Mark Murphy <[email protected]> wrote: > > > > On Mon, Aug 9, 2010 at 3:41 PM, Moto <[email protected]> wrote: > > > > Currently I have only 2 layouts that need special attention. > > > > The key word there is "currently". > > > > > My > > > > questions... What is the best way to properly handle screens > > > > resolution/sizes/types? > > > >http://developer.android.com/guide/practices/screens_support.htmlhttp...... > > > > > I thought I would create the following resource folders: > > > > res/layout > > > > res/layout-800x480 > > > > res/layout-854x480 > > > > The first directory is OK. > > > > > Does anyone know if this is the best way to handle specific layouts > > > > for specific screens? Doing it by resolution size? > > > > You really really really really really really do not want to "handle > > > specific layouts for specific screens". Redesign your UI to be more > > > fluid, and handle broad categories of screen sizes (e.g., small vs. > > > normal vs. large). > > > > -- > > > Mark Murphy (a Commons > > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 > > > Available! -- 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

