{ "id": "118732", "key": "TIMOB-15251", "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-08-19T12:02:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "progressindicator", "reprod" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:09.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": "When showing the {{Ti.UI.Android.ProgressIndicator}} without a message, the rotating indicator itself is displayed off-center, like shown in the screenshot attached.\r\n\r\nh1. Reproduce\r\nThis can be reproduced using the simple example in the [docs|http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.Android.ProgressIndicator], only modified to show the indeterminant indicator with no message:\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'Show Progress Dialog'\r\n});\r\n\r\nvar progressIndicator = Ti.UI.Android.createProgressIndicator({\r\n location: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,\r\n type: Ti.UI.Android.PROGRESS_INDICATOR_INDETERMINANT,\r\n cancelable: true\r\n});\r\n\r\nbutton.addEventListener('click', function (e) {\r\n progressIndicator.show();\r\n var value = 0;\r\n setInterval(function(){\r\n if (value > 10) {\r\n return;\r\n }\r\n progressIndicator.value = value;\r\n value ++;\r\n }, 200);\r\n // do some work that takes 3 seconds\r\n // ie. replace the following setTimeout block with your code\r\n setTimeout(function(){\r\n progressIndicator.hide();\r\n }, 3000);\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "41757", "filename": "progress.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-08-21T07:12:48.000+0000", "size": 44313, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ProgressIndicator with no message shows indicator off-center", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 3.1.1.GA\r\nSamsung Galaxy S2, Android 4.2.3", "comment": { "comments": [ { "id": "267416", "author": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fokke, Can you provide a small test case that reproduces this issue, so that we can test and verify this?\nThanks,\nJamie", "updateAuthor": { "name": "jbuckley", "key": "jbuckley", "displayName": "Jamie Buckley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-20T22:53:49.000+0000", "updated": "2013-08-20T22:53:49.000+0000" }, { "id": "285153", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "This not our bug. while creating AlertDialog box android set this as theme .this ticket is Android specific.", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-19T11:19:49.000+0000", "updated": "2013-12-20T04:23:31.000+0000" }, { "id": "423516", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T17:11:21.000+0000", "updated": "2017-07-05T17:11:21.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }