使用Xamarin.Forms Shell时,主选项卡是否可以显示在顶部

使用Xamarin.Forms Shell时,主选项卡是否可以显示在顶部,xamarin.forms,xamarin.forms.shell,Xamarin.forms,Xamarin.forms.shell,客户端希望iOS的主选项卡显示在底部,Android的主选项卡显示在顶部。这在使用Shell时可能吗?我知道嵌套/辅助选项卡可以出现在顶部,但我指的是主/顶级选项卡。Shell是否强制主选项卡始终为底部选项卡,或者是否有办法将它们显示在顶部?对不起,Shell强制主选项卡始终为底部选项卡,我们无法修改它 shell tabbar的布局不能设计为默认布局。您可以在此处查看: 最后,正如您所说的,建议不要使用Shell来实现这一点 public override AView OnCreateView

客户端希望iOS的主选项卡显示在底部,Android的主选项卡显示在顶部。这在使用Shell时可能吗?我知道嵌套/辅助选项卡可以出现在顶部,但我指的是主/顶级选项卡。Shell是否强制主选项卡始终为底部选项卡,或者是否有办法将它们显示在顶部?

对不起,Shell强制主选项卡始终为底部选项卡,我们无法修改它

shell tabbar的布局不能设计为默认布局。您可以在此处查看:

最后,正如您所说的,建议不要使用Shell来实现这一点

public override AView OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
    {
        if (_shellContent != null)
        {
            _page = ((IShellContentController)_shellContent).GetOrCreateContent();
        }

        _root = inflater.Inflate(Resource.Layout.ShellContent, null).JavaCast<CoordinatorLayout>();

       //here layout be designed as default 
        _toolbar = _root.FindViewById<Toolbar>(Resource.Id.shellcontent_toolbar);

        _renderer = Platform.CreateRenderer(_page, Context);
        Platform.SetRenderer(_page, _renderer);

         ...

        return _root;
    }