Android ListView上下文操作不遵循布局

Android ListView上下文操作不遵循布局,android,xamarin.forms,Android,Xamarin.forms,想知道是否有其他人遇到了以下问题 我已将App.MainPage包装在导航页面中 MainPage = new NavigationPage(new MyPage()); 我从MyPage导航到一个用户帐户页,它是一个选项卡页 这里的xaml非常简单 <TabbedPage.Children> <userAccount:SitesTab /> <userAccount:ProjectsTab /> <userAccount:Se

想知道是否有其他人遇到了以下问题

我已将App.MainPage包装在导航页面中

MainPage = new NavigationPage(new MyPage());
我从MyPage导航到一个用户帐户页,它是一个选项卡页

这里的xaml非常简单

<TabbedPage.Children>
    <userAccount:SitesTab />
    <userAccount:ProjectsTab />
    <userAccount:SettingsTab />
</TabbedPage.Children>
我遇到的问题是,Android上的上下文操作并没有覆盖/替换导航栏,而是将其向下推,并将所有内容都搞糟

上下文之前

上下文之后


那上面是什么?有人想出办法解决这个问题吗?页面顶部的上下文菜单应该覆盖导航栏,而不是向下推所有内容。

结果表明,我的应用程序compat主题中需要以下内容

<style name="myActivityTheme" parent="Theme.AppCompat.NoActionBar">
    <item name="windowActionModeOverlay">true</item>
</style>

你能告诉我你的xamarin.forms是哪个版本吗?我目前在一个有Xamarin.Forms 2.3.3.193的项目中工作,它将覆盖导航栏。是的,我在同一个版本上
<AbsoluteLayout>
    <ListView AbsoluteLayout.LayoutBounds="0,0,1,1"
                AbsoluteLayout.LayoutFlags="All"
                ItemsSource="{Binding ListItems}">
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <ViewCell.ContextActions>
                        <MenuItem Text="Do Stuff"/>
                        <MenuItem Text="Delete Stuff" IsDestructive="True"/>
                    </ViewCell.ContextActions>
                    <StackLayout>
                        <Label Text="{Binding .}"/>
                    </StackLayout>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</AbsoluteLayout>
<style name="myActivityTheme" parent="Theme.AppCompat.NoActionBar">
    <item name="windowActionModeOverlay">true</item>
</style>