{ "id": "116574", "key": "TIMOB-14527", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-06-27T20:17:19.000+0000", "priority": null, "labels": [ "activityindicator", "android" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:24.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nWhen using one of Android's Holo Light or Dark themes, the ActivityIndicator style differs depending how/when .show(); is called.\r\n\r\nWhen activityIndicator.show(); is called immediately after win1.open() - the image is thicker and darker. When called later - either via setTimeout or the click event of a button, the image is thinner and faded.\r\n\r\nThe same code without activating a Holo theme creates the same style activity indicator each time.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Android Activity Debug',\r\n backgroundColor:'#fff',\r\n fullscreen: false\r\n});\r\n \r\nvar activityIndicator = Ti.UI.createActivityIndicator({\r\n style: Ti.UI.ActivityIndicatorStyle.DARK,\r\n top: 10,\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE\r\n});\r\n \r\nwin1.add(activityIndicator);\r\nwin1.open();\r\n \r\n// Calling here renders a thicker, darker image\r\n//activityIndicator.show();\r\n\r\n// But - when calling it from setTimeout\r\n// Or from the event handler of a button click\r\n// The indicator appears lighter and thinner\r\n/*\r\nsetTimeout(function() {\r\n activityIndicator.show();\r\n}, 2000);\r\n*/\r\n{code}\r\n\r\n{code:lang=xml|title=tiapp.xml}\r\n\r\n 14\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nI initially raised this issue in the following Q & A thread:\r\nhttp://developer.appcelerator.com/question/154077/android-activityindicator-looks-different-depending-when-show-called", "attachment": [ { "id": "40326", "filename": "android-activity-indicators.jpg", "author": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "created": "2013-06-27T20:17:19.000+0000", "size": 11286, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ActivityIndicator when using Holo themes renders inconsistently depending when .show() is called", "creator": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "subtasks": [], "reporter": { "name": "jwebster", "key": "jwebster", "displayName": "Joe Webster", "active": true, "timeZone": "America/Argentina/Buenos_Aires" }, "environment": "Titanium Studio, build: 3.1.1.201306112235\r\n\r\nAndroid emulators tested:\r\n4.0.3 [x86] HVGA\r\n4.2.2 [x86] HVGA\r\n\r\nTheme set in tiapp.xml to \"Theme.Holo.Light\" (or Dark)", "comment": { "comments": [ { "id": "290220", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with latest master but couldn't reproduce the issue.\nAndroid 4.3, Nexus S", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-01-29T16:09:58.000+0000", "updated": "2014-01-29T16:09:58.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }