相关疑难解决方法(0)

Xamarin.Forms无法使用ListView(删除选择涟漪效果)

我有一个ListView与自定义ViewCell显示文章.但是,当您选择项目时,它会显示材质设计纹波/选择效果.

连锁反应

XAML:

   <ListView HasUnevenRows="True" ItemsSource="{Binding NewsArticles}" IsPullToRefreshEnabled="True">
        <ListView.ItemTemplate>
          <DataTemplate>
            <ViewCell>
              <StackLayout Padding="10">
                <Label Text="{Binding Title}" HorizontalOptions="Center" FontAttributes="Bold" />
                <Image Source="{Binding ImageUrl}" IsVisible="{Binding HasImage}" />
                <Label Text="{Binding Content}"></Label>
              </StackLayout>
            </ViewCell>
          </DataTemplate>
        </ListView.ItemTemplate>
      </ListView>
Run Code Online (Sandbox Code Playgroud)

如何消除涟漪效应?

c# xaml android listview xamarin.forms

24
推荐指数
1
解决办法
6641
查看次数

标签 统计

android ×1

c# ×1

listview ×1

xamarin.forms ×1

xaml ×1