Project: titanium
Issue TIMOB-17572: iOS: ActivityIndicator does not reset when used in ListView
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.
Story points: 5