{ "id": "92902", "key": "TIMOB-9423", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-07T03:31:02.000+0000", "created": "2012-06-06T13:06:34.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_scrollableview", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "20463", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "100197", "key": "TIMOB-10723", "fields": { "summary": "MobileWeb: Scrollable view \"addView\" method not working", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "krowley", "key": "krowley", "displayName": "Karl Rowley", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-10-07T12:02:11.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": "Scrollable View \"addView\" method doesn't work in android. This method works in IOS. \r\nh4. Repo Steps\r\n1. Run the below code in your app.js\r\n2. You can't see the yellow view added to the scrollable view. \r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\nvar table = Titanium.UI.createTableView();\r\nwin.add(table);\r\nvar row = Titanium.UI.createTableViewRow();\r\ntable.appendRow(row);\r\n \r\nvar view1 = Ti.UI.createView({ backgroundColor:'red' });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'green' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'blue' });\r\n \r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3],\r\n showPagingControl:true,\r\n height: 200\r\n});\r\nvar view4 = Ti.UI.createView({backgroundColor:'yellow'});\r\nscrollableView.addView(view4);\r\nrow.add(scrollableView);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Scrollable view \"addView\" method not working", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nTi SDK 2.0.1.GA2\r\nAndroid Optimus V", "comment": { "comments": [ { "id": "214214", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\r\nTested and verified on:\r\nTitanium Studio, build: 2.1.1.201208091713\r\nTitanium SDK, build: 2.2.0.v20120810194112\r\nDevices: Nexus 7 tab (4.1), HTC Evo (4.0.3), Android Emulator (2.2)\r\n\r\nThe yellow view added to scrollable view now is visible.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-13T16:17:33.000+0000", "updated": "2012-08-13T16:17:33.000+0000" }, { "id": "214236", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2602", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-13T17:16:38.000+0000", "updated": "2012-08-13T17:16:38.000+0000" }, { "id": "214426", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Reopening to edit fixVersion", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T14:13:50.000+0000", "updated": "2012-08-14T14:13:50.000+0000" }, { "id": "214427", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed in 2_1_X by https://github.com/appcelerator/titanium_mobile/pull/2733", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T14:14:14.000+0000", "updated": "2012-08-14T14:14:14.000+0000" }, { "id": "217952", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-07T03:30:24.000+0000", "updated": "2012-09-07T03:30:24.000+0000" }, { "id": "222418", "author": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "body": "Host OS: Linux\r\nOS Arch: x86\r\nJRE Version: 1.6.0_25\r\nJRE Vendor: Sun Microsystems Inc.\r\nVersion: 2.1.2.201208301612\r\nTitanium Mobile SDK Version: 2.1.3\r\n\r\nthe yellow view is still not added in TiSDK 2.1.3\r\n", "updateAuthor": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-07T11:35:36.000+0000", "updated": "2012-10-07T11:35:36.000+0000" }, { "id": "222420", "author": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "body": "Correction: The view is not added in emulator (HVGA - Android 2.3.3), it is on device. \r\n\r\n", "updateAuthor": { "name": "acebone", "key": "acebone", "displayName": "Esben Maaløe", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-07T12:02:11.000+0000", "updated": "2012-10-07T12:02:11.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }