Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5238] Android: remove padding on sides of tableView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-10-18T11:17:45.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-41, Release 1.8.0
ComponentsAndroid
Labelsmodule_tableview, qe-testadded
ReporterJon Alter
AssigneeAllen Yeung
Created2011-09-08T23:25:24.000+0000
Updated2014-06-19T12:46:18.000+0000

Description

Remove the padding on the sides of the tableView Attached are screen shots of the padding or lack there of on ios and android. Step 1: run the code below Step 2: see the white to the right and left of the red tableViewRow
var win = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});

var row = Titanium.UI.createTableViewRow();
var view = Titanium.UI.createView({backgroundColor:'red',height:50});
row.height = 'auto';
row.add(view);

var data = [row];
var table = Titanium.UI.createTableView({data:data});
win.add(table);
win.open();

Associated Helpdesk Ticket

http://appc.me/c/APP-459375

Attachments

FileDateSize
android.jpg2011-09-08T23:25:24.000+000024959
iphone.jpg2011-09-08T23:25:24.000+000019414

Comments

  1. Pablo Vagliati 2011-10-06

    Please solve it. It is a big problem for us. Are there some way to fix it by me? Thanks in advance. I wait you contact, Thanks. Pablo.
  2. Ryan Marr 2011-11-14

    I found my own work around to this issue. Try adding your tableview to a view that is the entire width of the window and set the left and right to '-5px' or '-5dp'. that gave me the result I was looking for.
  3. Natalie Huynh 2011-12-06

    Tested with 1.8.0.1.v20111205164258 v8/rhino on Galaxy 10.1 (3.1) Droid 1 (2.2.2) Nexus S (2.3.6) Emulator (4.0)

JSON Source