Xamarin.Forms 实现 Android 动作条

Xamarin.Forms implement Android ActionBar

我正在使用 Xamarin.Forms,我想创建一个选项卡式导航(比如 Android 中带有 ActionBar 的导航),就像 [=39] 中使用的那样=] Play Store 和 Google Play Music(也用于 Facebook 应用程序和其他现代更新应用程序)。这是一张带有两个样本的图像。一个用于 Play 音乐,另一个用于 Play 商店。

Play Music and Play Store Tabbed Navigation

我已经尝试了多种实现方法,并且已经阅读了 Xamarin 跨平台文档。然而,我还没有找到对此的明确回应。 SO 上提出了类似的问题,但也没有真正帮助。

这是我在 GitHub 上尝试的示例:My Tabbed Nav

但它一直因这个错误而崩溃(然后请求 "ActionBar.cs" 文件):

System.Exception: Android only allows one navigation page on screen at a time

那么,我究竟该如何实现呢?

现在,我知道这是可能的。但是作为 Xamarin 的新手,XAML 和所有这些我都遇到了严重的问题,这是最关键的问题之一!

PS:顺便说一句,抱歉,我仅限于发布图片和链接

非常感谢。

你可以试试TabbedPage https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/tabbed-page/

为了推动 Material 设计: https://blog.xamarin.com/material-design-for-your-xamarin-forms-android-apps/

感谢@Bonelol, I found the very simple solution to this issue here: