Only horizontal view allowed.

How can i allow only horizontal view for my app ???

Posts

  • fbs419fbs419 ✭✭ USMember ✭✭

    In your OnCreate, you can do something like:

    RequestedOrientation = Android.Content.PM.ScreenOrientation.Landscape;

  • SebastianSeidel.9226SebastianSeidel.9226 ✭✭✭✭ DEInsider, University ✭✭✭✭
    edited December 2014

    You can also use an annotation.

    [Activity(ScreenOrientation = ScreenOrientation.Landscape)]
    public class MyActivity: Activity
    {...}
    
Sign In or Register to comment.