Android newbie: switch between landscape mode and portrait mode -


i followed android developrs tutorial create simple tab layout. fine tutorial, got tab layout working.

in default portrait mode, tabs located on top of screen, when change landscape mode, tabs on top makes screen looks odd, so, locate tabs on left side of screen vertically when emulator change landscape mode.

i not sure correct way it? mean correct way define different tabs layout portrait mode , landscape mode. can give suggestions?

create 2 layout files 1 portrait , 1 landscape. place these layout-port , layout-land respectively. you'll have handle screen orientation if u want save state of screen


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -