{ "id": "91410", "key": "TIMOB-9008", "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": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-28T11:10:31.000+0000", "created": "2012-05-06T07:44:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "ipass1" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T22:02:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nIn all the apps that I can recall on Android, the text next to checkboxes usually appears on the left. I appreciate this may be a subjective opinion, so please get other opinions and resolve or close this ticket as necessary.\r\n\r\nSee attached screenshot.\r\n\r\nh2. Test Case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar basicSwitch = Ti.UI.createSwitch({\r\n\tcolor: 'black',\r\n\tstyle: Ti.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n\ttextAlign:Ti.UI.TEXT_ALIGNMENT_RIGHT,\r\n\ttitle:'Notifications',\r\n\tvalue:true,\r\n\twidth: 300\r\n});\r\nwin.add(basicSwitch);\r\n\r\nbasicSwitch.addEventListener('change',function(e){\r\n\tTi.API.info('Switch value: ' + basicSwitch.value);\r\n});\r\n\r\nwin.open();\r\n\r\n// print initial value\r\nTi.API.info('Switch value: ' + basicSwitch.value);\r\n{code}", "attachment": [ { "id": "27545", "filename": "5560_titanium_4_WVGA800.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-06T07:46:11.000+0000", "size": 25979, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: UI.Switch - STYLE_CHECKBOX text should be on left rather than right", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium 2.0.1 GA2\r\n* Android APIs 2.2\r\n* v8", "comment": { "comments": [ { "id": "193924", "author": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I totally agree.", "updateAuthor": { "name": "ivan.skugor", "key": "ivan.skugor", "displayName": "Ivan Skugor", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-05-07T00:59:47.000+0000", "updated": "2012-05-07T00:59:47.000+0000" }, { "id": "240135", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This nature is same as the native android behavior.\r\nSo it cannot be treated as a bug.", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-28T11:10:31.000+0000", "updated": "2013-02-28T11:10:31.000+0000" }, { "id": "414032", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T22:02:09.000+0000", "updated": "2017-03-20T22:02:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }