Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19829] iOS: Add trackTintColor to Ti.UI.ProgressBar

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-11-02T17:43:18.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
ComponentsiOS
Labelsios, progressbar
ReporterFlavio De Stefano
AssigneeHans Knöchel
Created2015-10-29T14:48:32.000+0000
Updated2016-01-14T22:10:48.000+0000

Description

Currently, the Ti.UI.ProgressBar on iOS support coloring options for the active progress. This improvement allows to also set the trackTintColor to cover color of the tracked progress. *Demo*:
var win = Ti.UI.createWindow({
    backgroundColor: "#fff"
});

var progress = Ti.UI.createProgressBar({
    tintColor: "green",
    trackTintColor: "red",
    min: 0,
    max: 1,
    value: 0.3,
    width: 300
});

win.add(progress);
win.open();

Comments

  1. Flavio De Stefano 2015-10-29

    https://github.com/appcelerator/titanium_mobile/pull/7373
  2. Ingo Muschenetz 2015-10-29

    [~kopiro] can you please add a description of this feature and the test steps/case to the ticket?
  3. Hans Knöchel 2015-11-02

    [~ingo] Added description and demo to cover this. The PR is awaiting final changes and can then be merged.
  4. Harry Bryant 2016-01-14

    Verified fixed, tested demo code as stated, as well as trying various colors for both tintColor & trackTintColor. Tested on: iPhone 6s Device (9.2) & iPhone 6 Plus Device (8.4) Mac OSX El Capitan 10.11 (15A284) Ti SDK: 5.2.0.v20160114021251 Appc NPM: 4.2.2 App CLI: 5.2.0-220 Xcode 7.2 Node v4.2.3 production *Closing ticket.*

JSON Source