Screen orientation Ctrl+F11

lvdp

Member
Licensed User
Longtime User
Hello,
I'm studying layout variants (§ 8.6 in the Beginner's Guide).
If I press Ctrl+F11 in the emulator, everything - including the title bar - is turned 90 degrees, so it is portrait on it's side instead of landscape.:sign0161:
How to solve this problem ?
Best regards,
Luc
 

lvdp

Member
Licensed User
Longtime User
text vertivcal

Hello klaus,
Probably my question was not clear...
In the landscape mode in the Beginner's Guide the text stays horizontal (page 108). In my case the text on the emulator is vertical (have to put my head horizontal to read the text from bottom to top).
Also the Activity bar stands on it's side...
 
Last edited:
Upvote 0

lvdp

Member
Licensed User
Longtime User
I followed what is written on page 107 of the beginners guide:
- I copied the TestLayouts folder and renamed it to TestLayoutVariants
- I renamed TestLayouts.b4a to TestLayoutsVariants.b4a
- I double clicked it to start up Basic4Android
- I chose Tools - Run AVD Manager and started up Emulator1 - Android 2.3.3, API level 10
- If I press Ctrl and F11 the screen turns on its side, giving landscape format, but vertical text. If i do this on my real phone, the text stays horizontal.
- I checked the settings for the display on both (emulator end real phone) and auto-rotate screen is on.
So the problem is in the emulator.

Then I ran the designer and connected it with the emulator.
I get the picture on page 107. In the designer I see 2 Variants:
320 x 480, scale=1 (160 dpi)
480 x 320, scale=1 (160 dpi)
When I select the first or the second, it doesn't make difference regarding the text orientation.
In Basic4Android under Project - Orientations supported I have "Both" selected. If I select there "Landscape" I have the inverse problem : horizontal text in landscape position but vertical text in portrait position.

What setting could generate the behavior as described in the Beginners guide ?

Best regards,
Luc
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I see it too.
I updated my Emulator recently with two API levels.
Level 10 Android version 2.3.3 doesn't change orientation
Level 16 Android version 4.1 changes orientation
The previous level I had was Level 8 Android version 2.2, it changes orientation too. The images in the Beginner's Guide are from level 8.
It seems that it's an error in the Emulator.
My suggestion is to either:
- use a real device
- download an API level different from 10 for the Emulator.

Best regards.
 
Upvote 0

lvdp

Member
Licensed User
Longtime User
Thank you

This indeed solves the problem.
Thank you for the quick and to the point reply.
Best regards,
Luc.
 
Upvote 0
Top