Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20448

Android: Adding text color to a singular row adds the color to multiple down the list

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.1.0
    • Component/s: Android
    • Labels:
    • Environment:

      Mac OSX El Capitan 10.11.3
      Studio: 4.5.0.201602170821
      Ti SDK: 5.2.0.GA
      Appc NPM: 4.2.3
      Appc CLI: 5.2.0.GA
      
Xcode 7.2

      Node v4.2.4

    • Sprint:
      2017 Sprint 05 SDK

      Description

      Adding text color to a singular row adds the color to multiple down the list.

      Steps to reproduce:

      1. Use the app.js file below.

      Actual :
      Multiple rows have red text and it keeps changing.

      Expected:
      Only the first row should have red text

      App.js

      var win = Ti.UI.createWindow({
          backgroundColor: 'black',
      });
      var array = [];
       
      for (var i = 0; i < 501; i++) {
      	var obj = {
          title : "Row "+ i        
         };
        if (i == 0) { 
        	obj.color = 'red';
        }
            array.push(obj);
      }
       
      var tableview = Titanium.UI.createTableView({
          data: array,
      });
       
      win.add(tableview);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmerzadyan Frankie Merzadyan (Inactive)
                Reporter:
                jlongton Josh Longton
                Reviewer:
                Maggie Chen
                Tester:
                Lee Morris (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20994
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code