Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1801] iOS: ListView parity with Android for separators on non-existent items

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2013-07-12T23:09:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsiOS, listview, parity
ReporterMark Mokryn
AssigneeMauro Parra-Miranda
Created2013-07-12T11:50:26.000+0000
Updated2016-03-08T07:40:42.000+0000

Description

*Problem* On iOS, ListView fills the screen with separators for non-full ListViews. Android looks better without the lines. *Test case*
var win = Ti.UI.createWindow({
	backgroundColor : 'white'
});
var listView = Ti.UI.createListView({
	top : 0
	//, height: Ti.UI.SIZE this causes a bug on iOS.... another issue
});

var section = Ti.UI.createListSection({
	headerTitle : 'header'
});
section.setItems([{
	properties : {
		title : 'iOS has lines for non-existent rows'
	}
}]);
// section.footerTitle = 'a non-null string'; will get rid of the lines
// but what if I don't want an ugly gray bar at the end of every ListView? :(
listView.sections = [section];

win.add(listView);
win.open();

Comments

  1. Daniel Sefton 2013-07-12

    Lines for non-existent items is native iOS behavior. Closing as invalid.

JSON Source