Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2557] Android: tableView properties headerTitle and footerTitle do not display

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-18T23:08:42.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M07
ComponentsAndroid
Labelsandroid, defect, release-1.6.0, tableview
ReporterPaul Dowsett
AssigneeDon Thorp
Created2011-04-15T03:22:39.000+0000
Updated2011-04-18T23:08:42.000+0000

Description

Environment: android 2.2, TiDev 1.2.1. Tested using 1.4.X (21Nov) & 1.5.X (09Dec)

The following code demonstrates the issue:

var tableData = [
    { title: "Mountain View (North America)\nCloudy" },
    { title: "Washington, DC (North America)\nMostly Cloudy" },
    { title: "Brasilia (South America)\nThunderstorm" },
    { title: "Buenos Aires (South America)\nClear" },
    { title: "Sucre (South America)\nMostly Cloudy" },
    { title: "London (Europe)\nOvercast" },
    { title: "Moscow (Europe)\nPartly Cloudy" },
    { title: "Prague (Europe)\nClear" },
    { title: "St Petersburg (Europe)\nSnow" },
];

var table = Ti.UI.createTableView({
    backgroundColor:"white",
    data: tableData,
    headerTitle:"The Weather App",
    footerTitle:"[data and icons supplied by Google Weather API]",
    top:10,
    width:320
});

var win1 = Titanium.UI.createWindow({  
    backgroundColor:'#333'
});

win1.add(table);
win1.open();

Screenshot:

http://a.yfrog.com/img375/9876/screenshot036h.png" alt="screenshot">

Comments

  1. Marshall Culpepper 2011-04-15

    (from [16efabcec58ea9035cada516795b8ee016ab24aa]) process headerTitle/footerTitle on the table proxy as if it was on the first (implied) section. moved property constants from TableViewProxy to
    TiC. [#2557 state:fixed-in-qa]
    https://github.com/appcelerator/titanium_mobile/commit/16efabcec58ea9035cada516795b8ee016ab24aa"> https://github.com/appcelerator/titanium_mobile/commit/16efabcec58e...

  2. Opie Cyrus 2011-04-15

    verified

JSON Source