Android newbie: switch between landscape mode and portrait mode?

Create two layout files one for portrait and one for landscape. Place these layout-port and layout-land respectively. You'll have to handle screen orientation if you want to save the state of the screen.

You need to set up 2 different layouts for the activity, one in portrait ("normal") mode, one in landscape mode. This implies to not use TabActivity. Put landscape_tab.

Xml in layout-land folder inside res folder (res/layout-land) Put portrait_tab. Xml in layout-port folder inside res folder (res/layout-port) OfCourse you have to create layout-land and layout-port folder in res directory manually Your Solution is here android:orientation="vertical" does not work for TabWidget cheers :).

I followed the android developrs tutorial to create a simple tab layout. Everything is fine with the tutorial, I got the tab layout working. In default portrait mode, the tabs are located on top of screen, but when change to landscape mode, the tabs on the top makes the screen looks odd, so, I would like to locate the tabs on the left side of the screen vertically when the emulator change to landscape mode.

I am not sure What is the correct way to do it? I mean the correct way to define different tabs layout for portrait mode and landscape mode. Anybody can give some suggestions?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions