Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19026] Provide the ability to color the ActivityIndicator spinner

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-08-17T04:44:41.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsactivityindicator, iOS5
ReporterBen Bahrenburg
AssigneeEric Merriman
Created2015-06-15T18:24:50.000+0000
Updated2017-03-21T20:35:20.000+0000

Description

Provide the ability to color the activity indicator. This feature has been available since iOS 5. An example of this would be:
var spinner = Ti.UI.createActivityIndicator({
  color: 'green',
  font: {fontFamily:'Helvetica Neue', fontSize:26, fontWeight:'bold'},
  message: 'Loading...',
  style:Ti.UI.iPhone.ActivityIndicatorStyle.DARK,
  top:10,
  left:10,
  height:Ti.UI.SIZE,
  width:Ti.UI.SIZE,
  spinnerColor:'purple'	
});

Comments

  1. Ben Bahrenburg 2015-06-15

    Change the property name to match the existing indicatorColor property of MobileWeb
       
       var spinner = Ti.UI.createActivityIndicator({
         color: 'green',
         font: {fontFamily:'Helvetica Neue', fontSize:26, fontWeight:'bold'},
         message: 'Loading...',
         style:Ti.UI.iPhone.ActivityIndicatorStyle.DARK,
         top:10,
         left:10,
         height:Ti.UI.SIZE,
         width:Ti.UI.SIZE,
         indicatorColor:'purple'	
       });
       
       
  2. Ben Bahrenburg 2015-06-15

    PR sent https://github.com/appcelerator/titanium_mobile/pull/6912
  3. Chee Kiat Ng 2015-08-17

    New PR: https://github.com/appcelerator/titanium_mobile/pull/7035
  4. Chee Kiat Ng 2015-08-17

    CR and FT passed. PR merged.
  5. Ben Bahrenburg 2015-08-30

    In a few cases indicator color is not applied on init. This is fixed in this PR https://github.com/appcelerator/titanium_mobile/pull/7092
  6. Lee Morris 2017-03-21

    Closing ticket as fixed.

JSON Source