To programmatically change orientation use setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_LANDSCAPE); or setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_PORTRAIT);.
In this case each tab click event could be tied to its relevant orientation source: russenreaktor.wordpress.com/2010/01/03/s....
For this application I need the tabs to stay at the top (in portrait mode) and not shit to the right (landscape) when the phone is rotated. Is there a way to only rotate the layout inside of a tab, without rotating the entire screen? – codingCat Jul 14 at 23:30 If you have a method for each tab forcing it to the orientation you want, it will always have the correct orientation for the actively selected Tab.
– Pyrodante Jul 14 at 23:33 No. This had the predicted result. The frame set rotated alone with everything else placing the tabs at the top of the screen in landscape mode.
What I need is the ability to rotate the Contents of a single tab to landscape mode, or the ability to Lock the tabs in place at the top of the portrait oriented screen. – codingCat Jul 16 at 0:45 Sorry, wish I could help – Pyrodante Jul 16 at 2:58.
I found a solution outside of the tab-set. The following link discusses multiple solutions for displaying Vertical text: Vertical (rotated) label in Android I went with "CustomTextView" by PocketMagic which can be found here: pocketmagic.net/?p=1625 With the ability to display vertical text, I can keep the entire tab-set locked in Portrait mode. Thanks for the suggestions everyone.
-cc.
I'm using tabhost and want 3 of 4 tabs to be able to rotate and 1 tab set to portrait mode only. Previously (before applying this fix) the 3 tabs would rotate until the fixed portrait tab was selected, then they were all stuck in portrait mode. I had to set the other tabs to use the orientation of the USER to remedy this.
Added a setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_USER); in the onResume of the other 3 tabs and it now works exactly as I had intended. 3 tabs will now rotate based on the user's orientation of the device, and 1 tab is fixed portrait.
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.