question

AnasGuibene avatar image
0 Votes"
AnasGuibene asked LeonLu-MSFT commented

Xamarin screen orientaton not working on Nexus 9 emulator

How can I force the screen orientation to landscape on the Nexus 9 emulator? I used RequestedOrientation = ScreenOrientation.Landscape in MainActivity.cs and it works well on all other emulators The problems show up only on Nexus 9 Any solutions?

dotnet-csharpdotnet-xamarin
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you enable the auto-rotate settings like following screenshot?

120347-image.png

I test RequestedOrientation = ScreenOrientation.Landscape in MainActivity.cs of my Nexus 9 emulator, it works as normal.

120309-image.png


0 Votes 0 ·
image.png (28.0 KiB)
image.png (68.2 KiB)

Could you share a demo about it? And I create this Nexus 9 emulator by android studio. Then create a new project, add RequestedOrientation = ScreenOrientation.Landscape in MainActivity.cs

120655-image.png


0 Votes 0 ·
image.png (56.4 KiB)

0 Answers