Bug 42926 - [Android] TableSection without Title is rendered as empty TextCell
Summary: [Android] TableSection without Title is rendered as empty TextCell
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 2.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-07-29 15:53 UTC by Michael Rumpler
Modified: 2016-12-06 12:04 UTC (History)
2 users (show)

See Also:
Tags: ac
Is this bug a regression?: ---
Last known good build:


Description Michael Rumpler 2016-07-29 15:53:52 UTC
If you have a TableSection without a Title, then iOS suppresses the section header.

On Android, the header cell is rendered as a standard TextCell and the Text remains empty. This results in a big empty space followed by a divider line in the Accent color which cannot be removed either.

In https://bugzilla.xamarin.com/show_bug.cgi?id=26104 (which was filed 1.5 years ago for XF 1.3.1) rj.lala@belastingdienst.nl described a workaround which removes the empty TextCell after it was created by the TableViewModelRenderer. But 1) the workaround is ugly and 2) the divider line is not removed.

This has to be fixed in TableViewModelRenderer.GetCellForPosition which is unfortunately private and cannot be overridden by the user.
Comment 1 Michael Rumpler 2016-08-09 09:22:46 UTC
I submitted a PR to fix this issue: https://github.com/xamarin/Xamarin.Forms/pull/287
Comment 2 Rui Marinho 2016-12-06 12:04:34 UTC
Should be fixed in 2.3.4-pre2

Note You need to log in before you can comment on or make changes to this bug.