Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24365] Android: Ti.UI.ActivityIndicator "indicatorColor" not working

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-03-11T02:20:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.0
ComponentsAndroid
LabelsActivityIndicator, android, parity
ReporterAshish Sebastian
AssigneeJoshua Quick
Created2017-02-01T14:14:17.000+0000
Updated2021-03-11T02:20:30.000+0000

Description

Steps to reproduce the error : var win = Ti.UI.createWindow({ backgroundColor : "#fff" }); var activityIndicator = Ti.UI.createActivityIndicator({ indicatorColor :"red", indicatorDiameter : "50dp" }); activityIndicator.show(); win.add(indicatorHolder); win.open();

Attachments

FileDateSize
Screen Shot 2017-02-01 at 8.01.31 pm.png2017-02-01T14:14:10.000+000048619

Comments

  1. Hans Knöchel 2017-02-01

    indicatorDiameter is mobileweb only. And your example code does not work, indicatorHolder is not defined. If you mean indicatorHolder add it before showing it.
  2. Sharif AbuDarda 2017-02-01

    Hello, I have tested the below code, I see the indicatorColor is not working in Android. tested with SDK 6.0.1.GA.
       var win = Ti.UI.createWindow({
           backgroundColor : "#fff"
       });
       
       var activityIndicator = Ti.UI.createActivityIndicator({
           indicatorColor : "yellow"
       });
       
       win.add(activityIndicator);
       
       win.addEventListener('open', function(e) {
           activityIndicator.show();
       
       });
       
       win.open();
       
  3. Ashish Sebastian 2017-02-02

    Hi *@Hans Knöchel* : Thanks, for the reply and I believe that was a copy paste error, so you please try with the below code and you'll find the issue with "*IndicatorColor*". I need to change the color of the animated indicator. var win = Ti.UI.createWindow( { backgroundColor : "#fff" } ); var activityIndicator = Ti.UI.createActivityIndicator( { indicatorColor :"red", indicatorDiameter : "50dp" } ); activityIndicator.show(); win.add(activityIndicator); win.open();
  4. Ashish Sebastian 2017-02-06

    Hi, *Eric Merriman* : any success with this issue.
  5. Joshua Quick 2021-03-11

    This was resolved in Titanium 10.0.0 by ticket: [TIMOB-28351]

JSON Source