layout-land Problem

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

layout-land Problem

Postby desuvinodkumar » Wed Nov 25, 2009 5:39 am

Hi

How can i get the file from Lyout-land folder

for example we can get the file from layout by calling -----@layout\


lithat i need to include the file from the layout-land

please any body help me regarding this ....


TIA
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Top

Postby Kur1310 » Thu Nov 26, 2009 6:22 am

hi,
if u have files with same names in layout-port and layout-land folder then at run time anyone layout is taken according to the screen orientation,, you just need to reference it using R.layout.yourfilename or @layout/yourfilename.
There is no need to reference it using @layout-land/ or @layout-port/...
-Kur
Kur1310
Junior Developer
Junior Developer
 
Posts: 20
Joined: Wed Oct 28, 2009 10:50 am

Postby desuvinodkumar » Fri Nov 27, 2009 5:46 am

HI

Thanks for giving Reply .....

i know that it call directly takes whent he file names are same ,but i have changed in the land scape mode positions particularly i need to ge the file from Layout-land.

TIA
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests