Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15351] Android: ActivityIndicator style is not working properly on Android

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-10-08T16:05:28.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 22, 2013 Sprint 22 API
ComponentsAndroid
Labelsipass1, triage
ReporterDavide Cassenti
AssigneeSunila
Created2013-09-26T13:51:10.000+0000
Updated2017-03-28T21:18:18.000+0000

Description

Description of the problem

When setting the style of the ActivityIndicator in Android, the color never gets changed.

Steps to reproduce

Use the following code; testing on Android does not work, while iPhone is ok:
var win = Ti.UI.createWindow({
	backgroundColor: 'gray',
	layout: 'vertical'
});

var style = (Ti.Platform.osname == 'android') ? Ti.UI.ActivityIndicatorStyle : Ti.UI.iPhone.ActivityIndicatorStyle;

var ind1 = Ti.UI.createActivityIndicator({
	style: style.PLAIN,
	message: 'Plain indicator',
	top: 50
});
ind1.show();

var ind2 = Ti.UI.createActivityIndicator({
	style: style.DARK,
	message: 'Dark indicator',
	top: 50
});
ind2.show();

win.add(ind1);
win.add(ind2);

win.open();
See screenshots attached.

Attachments

FileDateSize
iOS Simulator Screen shot 26 Sep 2013 15.45.10.png2013-09-26T13:51:10.000+000027500
Screenshot_2013-09-26-15-46-48.png2013-09-26T13:51:10.000+000034165

Comments

  1. Sunila 2013-10-08

    This is Android behavior where the inverse style (DARK) will use the right color scheme for a light theme, it may not be always DARK.
  2. Lee Morris 2017-03-28

    Closing ticket as invalid.

JSON Source