TableView Header 部分覆盖行

TableView Header Section Covers The Rows

我有两个问题:

1- 我正在尝试使用 Xamarin 表单创建一个简单的 table 视图,但我发现 header 部分涵盖了以下单元格(table 中的行) .

我只是希望 header 部分在移动页面时像单元格一样消失,只保留导航栏。

有可能做这样的事情吗?或默认。

2- 我也在尝试自定义尺寸部分,我不想要默认尺寸,我需要更小的部分。

可以更改版块大小吗?

这里是我的 table 查看代码 XAML:

<TableView RowHeight = "35">
        <TableView.Root>
            <TableSection Title="EXAMPLE">     
                <CustomCell:DetailCell Text="Change password" Image ="iconPrivacy.png"></CustomCell:DetailCell>
            </TableSection>
        </TableView.Root>
</TableView>

您应该使用 ListView 而不是 TableView。这将允许您拥有您正在寻找的自定义 table header。

header 的默认功能是 "stick" 在导航栏下方,直到下一节 header 到达顶部。

这是一篇关于在 Xamarin Forms 中创建分组列表视图的优秀博客 post: http://motzcod.es/post/94643411707/enhancing-xamarin-forms-listview-with-grouping