{ "id": "62823", "key": "TIMOB-2191", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:22.000+0000", "created": "2011-04-15T03:13:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:22.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": "{html}

Add support for property 'androidView' as a platform specific\noption for AlertDialog. Note in the example I added a second\ninvisible view to force the size of the message container. It's a\nside-effect of view as a top-most container.

\n
\nvar win = Ti.UI.createWindow({ backgroundColor : 'white'});\nvar btn = Ti.UI.createButton({\n    title : 'Open Dialog'\n});\n\nbtn.addEventListener('click', function(e) {\n    var dialog = null;\n    var view = Ti.UI.createView({\n        backgroundColor : 'red',\n        width : 200,\n        height : 200\n    });\n    \n    var v2 = Ti.UI.createView({\n        wrap : false,\n        width : 300,\n        height : 300\n    });\n    view.add(v2);\n    \n    var viewBtn = Ti.UI.createButton({\n        title : 'Click Me',\n        width : 200,\n        height : 200\n    });\n    view.add(viewBtn);\n    \n    viewBtn.addEventListener('click', function(e) {\n        dialog.hide();\n    });\n\n    dialog = Titanium.UI.createAlertDialog({\n        buttonNames : ['Cancel'],\n        title:'I am a title',\n            androidView : view\n    }); \n\n    dialog.addEventListener('click', function(e) {\n        Ti.API.error(\"CLICK - ID: \" + e.index + \" cancel: \" + e.cancel + \" button: \" + e.button);\n    });\n    \n    dialog.show();\n});\nwin.add(btn);\nwin.open({animated:false});\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Add View support to AlertDialog", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127774", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [2f60d8ee7e2eda8de6380b8b654ff4cb6124e861])\n[#2191] added support for view in AlertDialog.\nSince this is the base widget it's actually supported in any dialog\non Android. Needs to be ported to master \nhttp://github.com/appcelerator/titanium_mobile/commit/2f60d8ee7e2ed...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:09.000+0000", "updated": "2011-04-15T03:13:09.000+0000" }, { "id": "127775", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [274ded5d85a8d4b5e918c175a83c615cf64aa256])\n[#2191 state:fixed-in-qa] Support a Titanium view\nin a dialog. There is a layout issue where you have one extra view\nlayer to get it to size correctly. This needs to be addressed when\nlayout is reworked. \nhttps://github.com/appcelerator/titanium_mobile/commit/274ded5d85a8...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:10.000+0000", "updated": "2011-04-15T03:13:10.000+0000" }, { "id": "127776", "author": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

pass android sim 1.6/2.1 Titanium SDK version: 1.5.0 (11/27/10\n10:50 aeb004c)

{html}", "updateAuthor": { "name": "mschmulen", "key": "mschmulen", "displayName": "Matt Schmulen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:13:10.000+0000", "updated": "2011-04-15T03:13:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }