How the framework knows use which layout xml file?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How the framework knows use which layout xml file?

Postby vhj374 » Fri Dec 19, 2008 10:04 am

We write application layout xml in different layout directories, for example, we put Landscape layout at res/layout-land, Portrait layout at res/layout-port.

Code:
# res/layout/ // Layouts that fit all screens come in here (maybe a mainmenu or so)
# res/layout-land/
# res/layout-land-320x240/
# res/layout-port/
# res/layout-port-320x240/

But, How could the framework knows when to use which xml within your res/layout-xxx directories???
Please help me !!!
vhj374
Freshman
Freshman
 
Posts: 3
Joined: Mon Nov 24, 2008 12:38 pm

Top

Postby MrSnowflake » Fri Dec 19, 2008 11:51 am

Check the resource docs for this, they explain it pretty thouroughly.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby vhj374 » Mon Dec 22, 2008 2:23 am

MrSnowflake wrote:Check the resource docs for this, they explain it pretty thouroughly.


Thanks but could you please give more clue...
I really googled code.google.com/android but no directly related docs...

If you know...
Thanks ~~
vhj374
Freshman
Freshman
 
Posts: 3
Joined: Mon Nov 24, 2008 12:38 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google Feedfetcher and 6 guests