I have two activities. 

The first activity has buttons arranged as per layoutfirst.xml in protrait 
mode and layoutfirst.xml in landscape mode, placed in layouts-land folder.
The second activity is a text view.

The navigation first view -> button click -> second view
Change orientation to landscape in second view -> click on back -> comes to 
first view with deformed layoutfirst.xml of the portrait orientation. I 
want that to be changed to layoutfirst.xml in the layouts-land folder. To 
achieve this, in onStart() method of the first view, called 
"setContentView(R.layout.layoutfirst);", the layout was changed accordingly 
but the screen freezes.

Is there anything I'm missing or any other way to achieve this. Any help is 
greatly appreciated. Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to