ListView group header 在Android是正常的,但是在IOS系统有背景颜色,如何去除?教你一招
<ListView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core">
<ListView.GroupHeaderTemplate>
<DataTemplate>
<ViewCell ios:Cell.DefaultBackgroundColor="Transparent">
<!--other views...-->
</ViewCell>
</DataTemplate>
</ListView.GroupHeaderTemplate>
</ListView>
加上一句 ios:Cell.DefaultBackgroundColor="Transparent" 就OK了。