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

Android: ProgressBar message property does not update in the GUI

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Won't Fix
    • Affects Version/s: Release 2.1.3
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio v3.1.0.201210092346
      Titanium Mobile v2.1.3
      Mac OS X v10.7.5
      Android API Level 8

      Description

      REPRODUCTION:
      Run code below in the Android emulator. Click on the window to increment the progress bar.

      RESULTS:
      Message in the progress bar does not change on the GUI even though the message property is being updated as demonstrated by the Label at the bottom.

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      })
       
      var pb=Titanium.UI.createProgressBar({
          top:10,
          width:250,
          height:'auto',
          min:0,
          max:10,
          value:0,
          color:'#fff',
          message:'Downloading 0 of 10',
          font:{fontSize:14, fontWeight:'bold'},
      });
       
      var label = Titanium.UI.createLabel({
      	bottom: 10,
      	text: pb.message
      });
       
      win.addEventListener('click', function(e){
      	if (pb.value >= pb.max) return;
      	pb.value++;
      	pb.message = 'Downloading ' + pb.value + " of " + pb.max;
      	Ti.API.info(pb.message);
      	label.text = pb.message;
      });
       
      win.add(pb);
      win.add(label);
      win.open();
      pb.show();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              bhatfield Benjamin Hatfield (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration