{ "id": "162149", "key": "AC-4251", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-08-02T18:45:31.000+0000", "created": "2016-07-27T14:03:11.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-02T18:45:31.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "In dialog, if you insert a custom view with the androidView property, if this view has top/left/button/right, it won't work...\r\nWhat a pity, because on Android Material (following guideline): Left/Right : '20dp'. \r\nWorkaround is to insert a parent view just for the padding but it's not best pratice\r\n\r\n{code:js}\r\n var dialog = Ti.UI.createAlertDialog({\r\n message: 'Bla Bla Bla Bla Bla ',\r\n androidView = Ti.UI.createLabel({\r\n\t\t\ttop : '24dp',\r\n\t\t\tleft : '20dp',\r\n\t\t\tbackgroundColor : 'red')}\r\n });\r\n dialog.show();\r\n\r\n{code}\r\n\r\n", "attachment": [ { "id": "59929", "filename": "Screenshot_2016-07-27-15-56-59.png", "author": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-27T14:03:07.000+0000", "size": 72115, "mimeType": "image/png" } ], "flagged": false, "summary": "Android Dialog androidView and padding", "creator": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "391679", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Well, a label is no view. Did you try wrapping it into a view? Pretty sure I did some spacing in the custom-view in the past and it worked.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-27T16:15:08.000+0000", "updated": "2016-07-27T16:15:33.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }