Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15311] Android: ActivityIndicator is not working when added to TableViewRow

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-10-18T19:02:33.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 21, 2013 Sprint 21 API, Release 3.2.0
ComponentsAndroid
Labelsmodule_activityindicator, qe-manualtest, qe-testadded
ReporterDavide Cassenti
AssigneeSunila
Created2013-09-23T12:37:16.000+0000
Updated2014-11-19T22:44:17.000+0000

Description

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.

Comments

  1. Sunila 2013-09-29

    Tried with latest master, android 4.3 on Google Galaxy Nexus, indicator is working.
  2. Biju pm 2013-09-30

    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
  3. Sunila 2013-10-09

    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
  4. Hieu Pham 2013-10-18

    CR + FR
  5. Federico Casali 2013-10-18

    Verified fixed. TiSDK 3.2.0.v20131017152001 CLI 3.2.0 Titanium Studio 3.2.0.201310152326 Closing.

JSON Source