TableView Header Section Covers The Rows

时间:2015-06-15 14:33:49

标签: xamarin tableview xamarin.forms

I have two questions:

1- I'm trying to do a simple table view with Xamarin forms, but i have found that the header sections cover the below cells (rows in table).

I just wants that the header section disappears like the cells when move the page and just maintain de navigation bar.

It's possible to do something like this ? Or is for default.

2- Also I'm trying to custom the size sections, I don't want the default size, i need smaller sections.

It's possible to change the sections size?

Here my table view code in XAML:

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

1 个答案:

答案 0 :(得分:0)

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

标题的默认功能是&#34;坚持&#34;在导航栏下,直到下一部分标题到达顶部。

这是一篇关于在Xamarin Forms中创建Grouped ListViews的优秀博文: http://motzcod.es/post/94643411707/enhancing-xamarin-forms-listview-with-grouping