In tableviewrow having labels in it, When runs on Android 4.2.2 and 4.3 label is truncated at the end of it. This only happens when 'anyDensity=false' in the android manifest is set.
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var self = Ti.UI.createView();
var tv = Ti.UI.createTableView({
top: 30,
bottom:30,
backgroundColor:'blue'
});
var rows = [];
var r1 = Ti.UI.createTableViewRow({
height:50,
backgroundColor:'yellow'
});
var labelTitle = Ti.UI.createLabel({
text : 'This is the title value for the table view row',
left : 12,
top: 2,
height : 'auto',
width : 'auto',
color : '#163E5E',
font : {
fontSize : 15,
fontWeight : 'bold'
}
});
r1.add(labelTitle);
var labelBody = Ti.UI.createLabel({
text : '01/01/2013',
left : 12,
top : 21,
height : 'auto',
width : 'auto',
//color : record.BodyColor,
color : '#163E5E',
font : {
fontSize : 12
}
});
r1.add(labelBody);
rows[0] = r1;
tv.setData(rows);
self.add(tv);
win1.add(self);
win1.open();
No comments