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

Android: ActivityIndicator shows when it is added to the window

    Details

      Description

      Our doc says that "Note that, unlike most views, the activity indicator is hidden by default and must be shown explicitly."
      To reproduce, run the test case below:

      var win = Ti.UI.createWindow({
      	fullscreen: false,
      	backgroundColor: 'yellow'
      });
       
      var actInd = Ti.UI.createActivityIndicator({style:Ti.UI.ActivityIndicatorStyle.BIG});
       
      win.add(actInd);
       
      var b = Ti.UI.createButton({
      	top: 10,
      	title: "show activity indicator"
      });
       
      b.addEventListener("click", function(){
      	actInd.show();
      });
       
      win.add(b);
       
      var b2 = Ti.UI.createButton({
      	top: 120,
      	title: "hide activity indicator"
      });
       
      b2.addEventListener("click", function(){
      	actInd.hide();
      });
       
      win.add(b2);
       
      win.open();
      

      Expected behavior: when the app launches, the activity indicator should not show.
      Actual behavior: when the app launches, the activity indicator shows.

      This issue does not happen on 3.1.2.GA or 3.1.3.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                pwang Ping Wang
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code