Bug 26104 - In Android cannot remove the divider line between header and listitems.
Summary: In Android cannot remove the divider line between header and listitems.
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms (show other bugs)
Version: 1.3.1
Hardware: Macintosh Mac OS
: Normal minor
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-01-16 09:36 UTC by rj.lala
Modified: 2016-12-06 12:04 UTC (History)
7 users (show)

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

Divider lines in tablesection (56.20 KB, image/png)
2015-01-16 09:36 UTC, rj.lala

Description rj.lala 2015-01-16 09:36:07 UTC
Created attachment 9380 [details]
Divider lines in tablesection


In Android I have 3 TableSections.
Every TableSection has a TableSectionHeader with a divider line.
I have the following custom renderer which hides the header, but I cannot remove the divider line.
See also the attachment, the blue lines.

//Used to clear empty headers in TableView for sections without a specified title
[assembly: ExportRenderer (typeof(TextCell), typeof(TableSectionHeaderRenderer))]
public class TableSectionHeaderRenderer : TextCellRenderer
	protected override Android.Views.View GetCellCore (Cell item, Android.Views.View convertView, ViewGroup parent, Context context)
		// Hide cells of TableSections with no title.
		var view = base.GetCellCore (item, convertView, parent, context) as ViewGroup;
		if (String.IsNullOrEmpty ((item as TextCell).Text)) {
			view.Visibility = ViewStates.Gone;
			while (view.ChildCount > 0) {
				view.RemoveViewAt (0);
			view.SetMinimumHeight (0);
			view.SetPadding (0, 0, 0, 0);
		var textCell = (TextCell)item;
		return view;
Comment 1 Michael Rumpler 2016-08-09 09:23:29 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:14 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.