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

TiAPI: Ti.UI.ProgressBar should smoothly animate value changes

    Details

    • Story Points:
      3

      Description

      Summary:
      Our Ti.UI.ProgressBar should animate by default when changing the progress value. This will make the UI widget look more modern.

      We should provide a new "animated" property which allows developers to enable/disable the animation. By default it should be true.

      To-Do on iOS:
      iOS (/iphone/Classes/TiUIProgressBar.m): animated:YES

      - (void)setValue_:(id)value
      {
        CGFloat newValue = ([TiUtils floatValue:value] - min) / (max - min);
        [[self progress] setProgress:newValue animated:YES];
      }
      

      To-Do on Android:
      When we switch over to the material LinearProgressIndicator, we can easily animate progress value changes via its setProgressCompat() method. We can do this once ticket TIMOB-28351 is implemented.

      Note that the way to do this with the old Android ProgressBar class is to do the below.

      ObjectAnimator.ofInt(progressBar, "progress", progressValue)
          .setDuration(300)
          .start();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                michael Michael Gangolf
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration