Bret,

You use the same layout XML file names and same widget IDs in both files - that way, orientation changes (and other alternate resources) are completely transparent to the application code.

But it's "res/layout-land", not "res/layout/land".

More info here:

http://developer.android.com/guide/topics/resources/providing-resources.html#QualifierRules

-- Kostya

26.07.2010 20:42, Bret Foreman пишет:
My UI designer has created both a portrait and landscape version of
one of our screens. These have the same IDs for all the widgets but a
different layout as appropriate. One layout is in res/layout and the
other is in res/layout/land. I loaded her res files as described and
now I see a runtime exception when the orientation changes from
portrait to landscape. I guess this is due to either 1) We need
different resource IDs for the two different orientations or 2) I need
some changes in the manifest to tell Android that I'm using res/layout
in one orientation and res/layout/land in the other for that activity.
Can someone point me in the right direction to fix this up?

Thanks



--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to