Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15643] Android: Rows after TableViewSection make section's footerView disappear

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-04T12:47:11.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterTony Lukasavage
AssigneeSunila
Created2013-11-02T00:50:45.000+0000
Updated2017-03-22T20:45:01.000+0000

Description

problem

If there are TableViewRows after a TableViewSection that contains a footerView, that section's footView will not appear. Please see the attached screenshot for a clearer picture.

test case

var rowCtr = 0,
	data = [];

var win = Ti.UI.createWindow({
	backgroundColor: '#fff',
	fullscreen: false,
	exitOnClose: true
});

var section = Ti.UI.createTableViewSection({
	headerView: Ti.UI.createLabel({
		text: 'headerView',
		backgroundColor: '#a00',
		color: '#fff',
		height: '40dp',
		width: Ti.UI.FILL
	}),
	footerView: Ti.UI.createLabel({
		text: 'footerView',
		backgroundColor: '#00a',
		color: '#fff',
		height: '40dp',
		width: Ti.UI.FILL
	})
});

genRows(4, data);
genRows(4, section);
data.push(section);
genRows(4, data);

var table = Ti.UI.createTableView({
	data: data
});

win.add(table);
win.open();

function genRows(num, obj) {
	var isSection = typeof obj.length === 'undefined';
	for (var i = 0; i < num; i++) {
		var row = Ti.UI.createTableViewRow({
			title: (isSection ? 'section ' : '') + 'row ' + (++rowCtr)
		});

		if (!isSection) {
			obj.push(row);
		} else {
			obj.add(row);
		}
	}
}

Attachments

FileDateSize
Screen Shot 2013-11-01 at 8.50.11 PM.png2013-11-02T00:51:39.000+000032873

Comments

  1. Sunila 2013-11-04

  2. Lee Morris 2017-03-22

    Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.

JSON Source