只要在MainActivity中设置
this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Portrait;//竖屏,禁止横屏
this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Nosensor;//横屏,禁止竖屏
只要在MainActivity中设置
this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Portrait;//竖屏,禁止横屏
this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Nosensor;//横屏,禁止竖屏
本文标题:xamarin.forms设置android 横竖屏
本文链接:https://www.haomeiwen.com/subject/xacfvttx.html
网友评论