the xml editor to show in landscape mode

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

the xml editor to show in landscape mode

Postby brain_first » Sat Jan 30, 2010 2:56 am

hi firends:
now , the application i do i want to show in landscape mode, when i run the emulator, it shows like this(1.png),the question is that when i edit the xml,i shows in editor like this(2.png),what i want is let it show in landscape when i was doing some modifies in editor.
please help me solve this problem if you know hoe to fix it
Attachments
2.png
2.png (163.55 KiB) Viewed 97 times
1.png
1.png (88.46 KiB) Viewed 97 times
brain_first
Freshman
Freshman
 
Posts: 5
Joined: Fri Dec 25, 2009 2:53 am

Top

Postby kaifong » Sat Jan 30, 2010 5:59 am

Hi,

In eclipse there is a Config tab which allows you to switch from landscape to portrait.
kaifong
Freshman
Freshman
 
Posts: 6
Joined: Thu Jan 14, 2010 2:29 am
Location: Taiwan

Postby jagtap.jj1 » Sat Jan 30, 2010 3:03 pm

use this "setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);"
http://developer.android.com/reference/ ... tation(int)
java-android developer
User avatar
jagtap.jj1
Senior Developer
Senior Developer
 
Posts: 124
Joined: Fri Aug 22, 2008 11:52 am
Location: India(Mumbai)

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google Feedfetcher and 1 guest