2017-04-12 4 views
0

他の誰かが次の問題に遭遇した場合には不思議に思います。ListView ContextActionがレイアウトに従わない

私が持っている私のApp.MainPage XAMLがMyPageから

MainPage = new NavigationPage(new MyPage()); 

は、私がここにTabbedPage

await Navigation.PushAsync(new MyAccountTabbedPage()); 

であり、ユーザーのアカウントページに移動ナビゲーション・ページにあります包まれた(非常に簡単)

<TabbedPage.Children> 
    <userAccount:SitesTab /> 
    <userAccount:ProjectsTab /> 
    <userAccount:SettingsTab /> 
</TabbedPage.Children> 

ここで楽しかったです。私SitesTab内からは、私が直面して実行している問題は、Androidのコンテキストアクションがカバー/ NavigationBarを置き換えるのではなく、それを押し下げていないということですContextActions

<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> 

が含まれているListViewを表示する必要がありますすべてをねじで締める。コンテキスト

コンテキスト前

だから何がここまでですか?誰かがこれを回避する手段を見つけましたか?ページ上部のコンテキストメニューは、すべてを押し下げるのではなく、NavigationBarを覆う必要があります。

+0

私のアプリのcompatをテーマに、私は次のことを必要と判明私は現在、Xamarin.Forms 2.3.3.193を持っているプロジェクトで作業しています。これは[this](https://i.stack.imgur.com/B0hqT.png)のようなナビゲーションバーをカバーします。 –

+0

はい、私は同じバージョンです –

答えて

0

あなたxamarin.formsされているバージョンを教えてくださいことはできますか?

<style name="myActivityTheme" parent="Theme.AppCompat.NoActionBar"> 
    <item name="windowActionModeOverlay">true</item> 
</style> 
関連する問題