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

Android: ProgressIndicator with no message shows indicator off-center

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      SDK 3.1.1.GA
      Samsung Galaxy S2, Android 4.2.3

      Description

      When showing the Ti.UI.Android.ProgressIndicator without a message, the rotating indicator itself is displayed off-center, like shown in the screenshot attached.

      Reproduce

      This can be reproduced using the simple example in the docs, only modified to show the indeterminant indicator with no message:

      Ti.UI.backgroundColor = 'white';
       
      var win = Ti.UI.createWindow({
        backgroundColor: 'blue'
      });
       
      var button = Ti.UI.createButton({
        title: 'Show Progress Dialog'
      });
       
      var progressIndicator = Ti.UI.Android.createProgressIndicator({
        location: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,
        type: Ti.UI.Android.PROGRESS_INDICATOR_INDETERMINANT,
        cancelable: true
      });
       
      button.addEventListener('click', function (e) {
        progressIndicator.show();
        var value = 0;
        setInterval(function(){
          if (value > 10) {
              return;
          }
          progressIndicator.value = value;
          value ++;
        }, 200);
        // do some work that takes 3 seconds
        // ie. replace the following setTimeout block with your code
        setTimeout(function(){
          progressIndicator.hide();
        }, 3000);
      });
       
      win.add(button);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fokkezb Fokke Zandbergen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Integration