PROBLEM DESCRIPTION
With the same code, you will see a different padding in tableviewrows, even if you set the height to 'auto'. Customer would like to get parity with iOS here.
STEPS TO REPRODUCE
1. Create a new mobile project
2. Paste the code above into app.js
3. Compile to Android
ACTUAL RESULTS
The row is showing a padding in the bottom, that is not appearing in iOS.
CODE
var win = Ti.UI.createWindow({
title:'testing labels',
});
var row=Ti.UI.createTableViewRow({
layout:'vertical',
height:'auto'
});
var firstLabel= Ti.UI.createLabel({
top:10,
left:15,
right:15,
height:'auto',
color:'#363636',
text:'This is First Label in the Row' });
var secondLabel= Ti.UI.createLabel({
top:10,
left:15,
right:15,
height:'auto',
color:'#363636',
text:'This is Second Label in the Row' });
row.add(firstLabel);
row.add(secondLabel);
var data = [];
data[0]=row;
var table=Ti.UI.createTableView({
data:data,
});
win.add(table);
win.open();
Could you please mark Priority as High, as our project is ready for Production.
This change will affect many other existing applications so we need to be careful with this change. We should not try to do it in a patch release.
Tested with 2.0.1GA2 on a Samsung Galaxy S2 and iOS simulator. Unable to reproduce the issue. Ticket closed.
Working fine now.Verified it with the following specifications Tested with Titanium SDK: 2.1.1.v20120716180600 Tested with Titanium Studio: 2.1.1.201207161421 Device - Samsung Galaxy Nexus Android 4.0.2 Machine OS - MAC 10.7.3