{ "id": "149787", "key": "TIMOB-19985", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-12-02T16:18:09.000+0000", "created": "2015-07-18T00:08:57.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "Community", "listview" ], "versions": [], "issuelinks": [ { "id": "55478", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "149593", "key": "TIMOB-19201", "fields": { "summary": "Android: Implement 'canScroll' on ListView", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-25T18:53:20.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": "It seems I can't disable scrolling for a ListView on Android, or disable its overscroll effect (similar to overScrollMode for a ScrollView).\r\n\r\nFor iOS, I can simly set \"canScroll\" to false. Please add this feature to Android as well. Thanks.", "attachment": [], "flagged": false, "summary": "Android - ListView doesn't have canScroll property", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 758, "state": "closed", "name": "2016 Sprint 24 SDK", "startDate": "2016-11-19T01:32:06.991Z", "endDate": "2016-12-03T01:32:00.000Z", "completeDate": "2016-12-05T01:53:38.311Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "363694", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~shawnlan], you can use \"touchEnabled = false\" for Android to disable ListView scroll. But, remember it will make you lose the itemclick event possibility. Thanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-09-13T09:19:50.000+0000", "updated": "2015-09-13T09:19:50.000+0000" }, { "id": "363825", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I will need itemclick event. Most people will need it as well. Please add the canScroll to Android. I don't see a reason why it's on iOS but not on Android. Thanks.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T19:51:22.000+0000", "updated": "2015-09-14T19:51:22.000+0000" }, { "id": "400681", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8593\r\nApp.js:\r\n\r\n{code:JavaScript}\r\nvar win = Ti.UI.createWindow({backgroundColor: 'black'});\r\nvar listView = Ti.UI.createListView({\r\n\tcanScroll: false\r\n});\r\nTi.API.info(\"status\", \" canScroll \" + listView.getCanScroll());\r\nlistView.setCanScroll(false);\r\nTi.API.info(\"status\", \" canScroll \" + listView.getCanScroll());\r\nvar sections = [];\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\r\n{code}\r\n", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-11-09T23:49:29.000+0000", "updated": "2016-11-09T23:49:29.000+0000" }, { "id": "402484", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{canScroll}} property works as expected.\r\nClosing.\r\n\r\nAppc Studio : 4.8.1.201611291132\r\nSDK Version : 6.1.0.v20161202104721\r\nMac OS Version : 10.12\r\nXcode Version : Xcode 8.1 Build version 8B62\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.9-1\",\"CLI\":\"6.1.0-302\"}\r\nTi CLI : 5.0.11\r\nAlloy : 1.9.4\r\nNode : v4.6.0\r\nDevice: running 7.1Pixel", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-02T19:21:30.000+0000", "updated": "2016-12-02T19:21:30.000+0000" }, { "id": "402487", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified the improvement {{canScroll}} can now be set.\r\n\r\nTested on:\r\n\r\n{noformat}\r\nmacOS Sierra 10.12.1\r\nNexus 5X(6.0.1)\r\nNexus 6p (7.0)\r\nandroid emulator (4.4.2, 6.0)\r\nStudio: 4.8.0.201611121409\r\nTi SDK: 6.1.0.v20161202081834\r\nAppc NPM: 4.2.8\r\nApp CLI: 6.1.0-302\r\nNode v4.4.7\r\n{noformat}\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-12-02T19:26:42.000+0000", "updated": "2016-12-02T19:26:42.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }