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

Android: Titanium.UI.ProgressBar 'color' setting portion of progressBar - should be text only

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 8.0.0
    • Component/s: Android
    • Environment:

      Android 8
      Titanium SDK 7.4.1

      Description

      Hi,

      This seems like this old issue was not fixed correctly: https://jira.appcelerator.org/browse/TIMOB-20467

      The 'color' property of Titanium.UI.ProgressBar sets the color of the portion of progressBar on Android, it should be setting the color of the Text. The correct setting should be 'tintColor' and not 'color'. There is also no mention of 'trackTintColor'.

      When checking the source for the module you can see it only uses color.
      https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIProgressBar.java#L67

      As per the documentation:

      color : String
      Color of the progress bar message, as a color name or hex triplet.
      

      https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ProgressBar-property-color

      tintColor : String
      The color shown for the portion of the progress bar that is filled.
      This property is a direct correspondant of the tintColor property of UIView on iOS. If no value is specified, the tintColor of the View is inherited from its superview.
      Requires: iOS 7.0 and later
      Default: null
      

      https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ProgressBar-property-tintColor

      To reproduce simply add the following code to any window and add the progress bar to a view:

      var progressBar = Titanium.UI.createProgressBar({
      	top: 0,
      	width: Ti.UI.FILL,
      	height: 'auto',
      	left: 5,
      	right: 5,
      	min:0,
      	max:10,
      	value:5,
      	tintColor: "blue",
      	color: "red",		
      });
       
      viewName.add(progressBar);		
      

        Attachments

          Activity

            People

            • Assignee:
              ybanev Yordan Banev
              Reporter:
              dieskim David van de Meer
              Reviewer:
              Gary Mathews
              Tester:
              Keerthi Mahalingam
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code