Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1843] ipad grouped tableview does not allow window background image

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2011-04-15T03:03:45.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsbackground, ios, ipad, tableview
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:03:44.000+0000
Updated2017-03-03T06:04:06.000+0000

Description

on 1.4.1 with iOS sdk 3.2 when a grouped table is used the underlying window's background image is not shown or is barely shown.

var win = Ti.UI.currentWindow;

var data = [];

for (var c=0;c<4;c++)
{

data[c] = Ti.UI.createTableViewSection({headerTitle:'Group '+(c+1)});
for (var x=0;x<10;x++)
{
    data[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1),backgroundColor:'#FF0000'}));
}

}

// create table view var tableview = Titanium.UI.createTableView({

data:data,
style: Titanium.UI.iPhone.TableViewStyle.GROUPED,
backgroundColor:'transparent'

});

// create table view event listener tableview.addEventListener('click', function(e)
{

// event data
var index = e.index;
var section = e.section;
var row = e.row;
var rowdata = e.rowData;
if (section.headerTitle.indexOf('clicked')==-1)
{
    section.headerTitle = section.headerTitle + ' (clicked)';
}
Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section  + ' row data ' + rowdata}).show();

});

// add table view to the window Titanium.UI.currentWindow.add(tableview);

Comments

  1. Adriano Paladini 2011-04-15

    SOLUTION on:

    https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobile/tickets/1738-grouped-table-does-not-honor-background-color-of-the-table-view#ticket-1738-2"> https://appcelerator.lighthouseapp.com/projects/32238-titanium-mobi...

  2. Marko Perutovic 2011-04-15

    This is still an issue and it's boring to make double table layout for ipad and iphone

  3. Adriano Paladini 2011-04-15

    This Error was correct by this ticket: https://appcelerator.lighthouseapp.com/projects/32238/tickets/1738-grouped-table-does-not-honor-background-color-of-the-table-view"> https://appcelerator.lighthouseapp.com/projects/32238/tickets/1738-...

  4. Stephen Tramer 2011-04-15

    Dupe #1738 as per above.

  5. Lee Morris 2017-03-03

    Closing issue due to time passed and irrelevance of the ticket.

JSON Source