{ "id": "170771", "key": "TIMOB-25660", "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": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-24T00:36:50.000+0000", "created": "2018-01-10T23:04:26.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ListView", "android" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-24T20:45:00.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": "The 'canScroll' property on ListView for Android cannot be dynamically set. It has been implemented as a creation-only property. Please introduce a dynamic capability to run {color:red}listView.setCanScroll(false){color}; in android. This works correctly in iOS already.\r\n\r\nTest case:\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'black'});\r\n\r\nvar canScroll = true;\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttop: 200\r\n});\r\nTi.API.info(\"status\", \" canScroll \" + listView.getCanScroll());\r\nvar sections = [];\r\n\r\nvar button = Ti.UI.createButton({title: \"toggle\", top: 3});\r\nwin.add(button);\r\nbutton.addEventListener('click', function(){\r\n\tTi.API.info(\"status\", \" canScroll \" + listView.getCanScroll());\r\n\tcanScroll = !canScroll;\r\n\tlistView.setCanScroll(canScroll);\r\n\tTi.API.info(\"status\", \" canScroll \" + listView.getCanScroll());\r\n});\r\n\r\nvar fruitSection = Ti.UI.createListSection({headerTitle: 'Fruits', canScroll: false});\r\nvar fruitDataSet = [\r\n\t{properties: {title: 'Apple'}},\r\n\t{properties: {title: 'Banana'}}\r\n];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nvar vegSection = Ti.UI.createListSection({headerTitle: 'Vegetables'});\r\nvar vegDataSet = [\r\n\t{properties: {title: 'Carrots'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}},\r\n\t{properties: {title: 'Potatoes'}}\r\n];\r\nvegSection.setItems(vegDataSet);\r\nsections.push(vegSection);\r\n\r\nlistView.sections = sections;\r\nwin.add(listView);\r\nwin.open();\r\n\r\nvar fishSection = Ti.UI.createListSection({headerTitle: 'Fish'});\r\nvar fishDataSet = [\r\n\t{properties: {title: 'Cod'}},\r\n\t{properties: {title: 'Haddock'}}\r\n];\r\nfishSection.setItems(fishDataSet);\r\nlistView.appendSection(fishSection);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: ListView 'canScroll' property cannot be set dynamically", "creator": { "name": "cornflakesuperstar", "key": "cornflakesuperstar", "displayName": "Jason Kotchoff", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cornflakesuperstar", "key": "cornflakesuperstar", "displayName": "Jason Kotchoff", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xcode 9.2\r\nmacOS High Sierra\r\nSDK: faulty behavior present on both 6.3.0.GA+", "comment": { "comments": [ { "id": "433006", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I was able to reproduce the issue in Android with SDK 7.0.1.GA. Listview \"canScroll\" does not work in Android, Working fine in iOS. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-01-11T04:11:16.000+0000", "updated": "2018-01-11T04:11:16.000+0000" }, { "id": "433111", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9726\r\nPR (7.0.X): https://github.com/appcelerator/titanium_mobile/pull/9727", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-13T01:40:54.000+0000", "updated": "2018-01-13T01:40:54.000+0000" }, { "id": "433219", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for both master & backport PR.\r\nWaiting for merge to become enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-16T23:39:07.000+0000", "updated": "2018-01-16T23:39:07.000+0000" }, { "id": "433484", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Backport PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-22T23:28:48.000+0000", "updated": "2018-01-22T23:28:48.000+0000" }, { "id": "433555", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Master PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-24T00:36:44.000+0000", "updated": "2018-01-24T00:36:44.000+0000" }, { "id": "433604", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 7.0.2.v20180124113923 & 7.1.0.v20180124063413.\r\n\r\nClosing.\r\n\r\nStudio Ver: 5.0.0.201712081732\r\nSDK Ver: 7.0.2.v20180124113923, 7.1.0.v20180124063413\r\nOS Ver: 10.13.2\r\nXcode Ver: Xcode 9.2\r\nAppc NPM: 4.2.11\r\nAppc CLI: 7.0.1\r\nDaemon Ver: 1.0.1\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.10\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-24T20:44:55.000+0000", "updated": "2018-01-24T20:44:55.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }