Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14908] Android: Activity indicator changes from old style to holo theme style after second time onwards

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-09-17T20:56:41.000+0000
Affected Version/sRelease 3.1.0, Release 3.1.1
Fix Version/s2013 Sprint 19, 2013 Sprint 19 API, Release 3.2.0
ComponentsAndroid
Labelsmodule_activityindicator, qe-manualtest, qe-testadded, supportTeam
ReporterRupesh Sharma
AssigneePing Wang
Created2013-08-19T06:32:23.000+0000
Updated2014-11-19T23:30:43.000+0000

Description

Description

First time when you open the new window having activity indicator added, it shows an old style, like the one on older android versions. Close the window (by pressing the back button) and re-open it. From the second time onwards, you'll see it show the correct Holo Theme style.

Test Case

app.js :
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'#fff'
});

var btn = Ti.UI.createButton({title:'open video'});
btn.addEventListener('click',function(){
    videoWin.open();
    actInd.show();
});
win1.add(btn);


var videoWin = Ti.UI.createWindow({
    title:'video player',
    backgroundColor:'#000',
    fullscreen:true
});
var actInd = Ti.UI.createActivityIndicator({zIndex:1,style:Ti.UI.ActivityIndicatorStyle.BIG});
videoWin.add(actInd); 


win1.open();

tiapp.xml :
<android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>17</tool-api-level>
        <manifest android:versionCode="1" android:versionName="1.0.0">
            <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>
        </manifest>
    </android>

Attachments

FileDateSize
20130829_130503.mp42013-08-29T07:37:54.000+00003107365

Comments

  1. sunil alachi 2013-08-27

    Tried with Google Nexus with Android version 4.3, I couldn't see the issue. If possible, please upload a screenshot.
  2. Ping Wang 2013-09-17

    PR: https://github.com/appcelerator/titanium_mobile/pull/4704
  3. Ping Wang 2013-09-23

    This fix is in 3.2.0 which will be released in Dec.
  4. Federico Casali 2013-10-21

    Was able to reproduce the issue using 3.1.3.GA on Google Nexus Galaxy 4.3 Verified fixed with: TiSDK 3.2.0.v20131018154951 CLI 3.2.0 Titanium Studio 3.2.0.201310181940 Closing.

JSON Source