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

Android: Listview modifies other rows on scroll

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 9.0.3, Release 9.2.1
    • Fix Version/s: Release 9.3.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      SDK 9.2.1.GA
      SDK 9.0.3.GA

    • Story Points:
      3
    • Sprint:
      2020 Sprint 22, 2020 Sprint 23

      Description

      There is an issue with Android and the Listview element.

      If you modify a row (e.g change the background colour) and then scroll up/down so that the row moves out of view, other rows pick up the property change.

      Please find attached modified version of the kitchen sink v2. Build for Android. Head into the list view example and then select a row, scroll up and down to push the row out of view and you will see other rows erroneously pick up the property change.

      Function that is calling on click..

      function handleListViewClick(e) {
      logger.log('Ti.UI.ListView clicked cell at index', e.sectionIndex + ' / ' + e.itemIndex);
       
      var item = e.section.getItemAt(e.itemIndex);
       
      item.properties.backgroundColor = "#696969";
       
      e.section.updateItemAt(e.itemIndex, item);
       
      if (OS_IOS) {
      this.deselectItem(e.sectionIndex, e.itemIndex);
      }
      }
      

      Have also attached a gif of the issue.

      Tested on 9.0.1.GA and 9.2.1.GA - Same issue. Android 10.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                smohammed Samir Mohammed
                Reviewer:
                Joshua Quick
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration