[TIMOB-20466] Android: TableViewRow title fails to display on android
| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Cannot Reproduce |
| Resolution Date | 2019-08-26T21:35:54.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | android |
| Reporter | Michael Stelly |
| Assignee | Unknown |
| Created | 2016-02-25T18:22:27.000+0000 |
| Updated | 2019-08-26T21:35:54.000+0000 |
Description
The assigned value for tableViewRow.title property, in this case a date string, displays correctly in ios simulator and device. It does not display at all in android emulator or device. Run the files attached to this ticket in a test app to demonstrate this bug.
Attachments
I added the following code as a workaround in the *detailsArray* loop. Nonetheless, title property display should be fixed.
_.each(detailsArray, function(items) { _.each(items, function(itemDetails, dateIndex) { //removed the title property var detailRow = Ti.UI.createTableViewRow({ // title: dateIndex, height: 20, data: itemDetails, categoryType: categoryType }); //added a label var detailLabel = Ti.UI.createLabel({ text: dateIndex, left: 15, height: 15, width: Ti.UI.SIZE, color: '#000', font: { fontSize: 12, fontFamily: 'helvetica' } }); //add arrow image to row var arrowImage = Ti.UI.createImageView({ width: 13, height: 13, right: 10, image: '/images/ico_chevron_sm.png', touchEnabled: false }); detailRow.add(detailLabel); detailRow.add(arrowImage); rows.push(detailRow); }); });Unable to reproduce on 8.1.0.GA SDK.