【发布时间】:2017-02-21 14:53:32
【问题描述】:
我正在尝试将整个应用在手机尺寸布局上的方向锁定为仅纵向,但在平板电脑尺寸的布局上允许纵向和横向。
我知道我可以将 Activity 归因于使用特定方向,但这适用于两种布局尺寸。
[Activity(
Label = "Brs.Members.Droid"
, MainLauncher = true
, Icon = "@mipmap/icon"
, Theme = "@style/Theme.Splash"
, NoHistory = true
, ScreenOrientation = ScreenOrientation.Portrait)]
public class SplashScreen : MvxSplashScreenActivity
{
public SplashScreen() : base(Resource.Layout.SplashScreen)
{
}
}
有没有办法只在手机大小的设备上排除横向布局?
【问题讨论】:
标签: android android-layout xamarin xamarin.android