Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20466] Android: TableViewRow title fails to display on android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-08-26T21:35:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid
ReporterMichael Stelly
AssigneeUnknown
Created2016-02-25T18:22:27.000+0000
Updated2019-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

FileDateSize
index.js2016-02-25T18:18:47.000+000026533
index.tss2016-02-25T18:21:34.000+0000155
index.xml2016-02-25T18:20:27.000+0000183
Screen Shot 2016-02-26 at 1.43.41 AM.png2016-02-25T19:44:41.000+0000163256

Comments

  1. Michael Stelly 2016-02-25

    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);
           });
       });
       
  2. Alan Hutton 2019-08-26

    Unable to reproduce on 8.1.0.GA SDK.

JSON Source