{ "id": "147613", "key": "TIMOB-18874", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-12T04:05:52.000+0000", "created": "2015-05-07T04:19:58.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-06-01T22:14:07.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": "On iOS, the cacheSize argument is present, but on Android this is missing. This leads to empty views in some cases that don't get rebuilt correctly after scrolling. Code is tested on SDK 3.5.1.GA Multiple Android versions and works.\r\n\r\nPR here for review:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6767\r\nThanks to skoften.", "attachment": [], "flagged": false, "summary": "Android: Add missing option cacheSize for scrollableViews", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 404, "state": "closed", "name": "2015 Sprint 10 SDK", "startDate": "2015-05-09T00:00:53.391Z", "endDate": "2015-05-23T00:00:00.000Z", "completeDate": "2015-05-25T14:55:16.386Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "352224", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "For the test code, test it with cache 1 and cache 5. Note that when set to 5, the image is not recreated.\r\n\r\nTest code for reference for this pr:-\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar view1 = Ti.UI.createView({ backgroundColor:'#123' });\r\nvar view2 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view3 = Ti.UI.createView({ backgroundColor:'#48b' });\r\nvar view4 = Ti.UI.createView({ backgroundColor:'#123' });\r\nvar view5 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view6 = Ti.UI.createView({ backgroundColor:'#48b' });\r\nvar view7 = Ti.UI.createView({ backgroundColor:'#123' });\r\nvar view8 = Ti.UI.createView({ backgroundColor:'#246' });\r\nvar view9 = Ti.UI.createView({ backgroundColor:'#48b' });\r\n\r\nvar win = Ti.UI.createWindow();\r\nvar image = Ti.UI.createImageView({\r\n image:'Earth.jpg'\r\n});\r\nview4.add(image);\r\n\r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3,view4,view5,view6,view7,view8,view9],\r\n showPagingControl:true,\r\n cacheSize: 5\r\n});\r\n\r\nwin.add(scrollableView);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-12T03:11:47.000+0000", "updated": "2015-05-12T03:11:47.000+0000" }, { "id": "352225", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Will be doing a separate PR for apidocs.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-12T03:18:13.000+0000", "updated": "2015-05-12T03:18:21.000+0000" }, { "id": "352226", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR for docs: https://github.com/appcelerator/titanium_mobile/pull/6838", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-12T03:41:30.000+0000", "updated": "2015-05-12T03:41:30.000+0000" }, { "id": "354035", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified. CacheSize is added to android.\r\nChecked it using the test case above.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.1.0.201505071004\r\nTi SDK : 4.1.0.v20150529013634\r\nCLI : 4.0.1\r\nAlloy : 1.6.0\r\nMAC Yosemite : 10.10.3\r\nAppc npm : 4.0.0\r\nAppc CLI : 4.0.1\r\nNode: v0.10.37\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-06-01T22:14:03.000+0000", "updated": "2015-06-01T22:14:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }