Problem description
When adding an ActivityIndicator to a TableViewRow, the indicator is not shown in Android. This works fine on iOS.
Code to reproduce
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var row = Ti.UI.createTableViewRow({
height: 80
});
var activityIndicator = Ti.UI.createActivityIndicator({
message: 'loading...',
style: Ti.Platform.osname == "android" ? Titanium.UI.ActivityIndicatorStyle.DARK : Titanium.UI.iPhone.ActivityIndicatorStyle.DARK
});
row.add(activityIndicator);
var table = Ti.UI.createTableView( {
backgroundColor:'white',
data: [row]
});
win1.add(table);
win1.open();
activityIndicator.show();
Note
The indicator seems to be showing if I add a setTimeout to show it; tried with 1s delay.
Tried with latest master, android 4.3 on Google Galaxy Nexus, indicator is working.
The issue cannot reproduce with the release master 3.2.0 Tested with: Titanium SDK version: 3.2.0 Tested on Device: Samsung galaxy s duos Android version: 4.0.4
When creating the native control, if the control was already visible, make sure that the native control is visible by sending message to make the control visible. https://github.com/appcelerator/titanium_mobile/pull/4776
CR + FR
Verified fixed. TiSDK 3.2.0.v20131017152001 CLI 3.2.0 Titanium Studio 3.2.0.201310152326 Closing.