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

iOS: ActivityIndicator does not reset when used in ListView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 3.3.0, Release 5.1.0, Release 5.0.0, Release 5.1.1
    • Fix Version/s: Release 7.0.2
    • Component/s: iOS
    • Environment:

      SDK 5.1.1.GA, Xcode 7.1, CLI 5.1.0.

    • Story Points:
      5

      Description

      A template in a ListView includes an ActivityIndicator. The first time the activity indicator appears, its spinner works fine but the second and subsequent time it appears, the spinner does not work.

      Steps to reproduce:

      (1) Create a new Alloy project and drop the three attached files into their usual folders and run the project on an iPhone or iOS Simulator.

      (2) Scroll to the bottom. The ActivityIndicator appears as normal for a second, until it's replaced with more ListItems.

      (3) Scroll to the bottom again. Now the ActivityIndicator is sans-spinner. Every subsequent scroll will have the same results.

      It appears that this is because the ActivityIndicator view is not properly resetting when removed from the ListView. When I set visible=false to the ActivityIndicator before removing it from the view, the spinner works ok. Unfortunately this requires editing a ListView which is an expensive operation. You can see the workaround in action by uncommenting line 95 of the example code.

      Note that the word "Loading" (also part of the ActivityIndicator) does appear even though the spinner does not.

        Attachments

        1. index.js
          2 kB
        2. index.tss
          0.8 kB
        3. index.xml
          0.7 kB

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              twilkinson Thomas Wilkinson
              Reviewer:
              Vijay Singh
              Tester:
              Abir Mukherjee
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code