{ "id": "107960", "key": "TIMOB-12305", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15104", "description": "2013 Sprint 03 API", "name": "2013 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-06T18:15:46.000+0000", "created": "2013-01-16T13:43:17.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "OverScroll", "SupportTeam", "qe-review", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "25885", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "105607", "key": "TIMOB-12121", "fields": { "summary": "Android: Add overScrollMode property", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42:48.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": "h3. Issue\r\n\r\nRegression: With 3.0.0.GA on > Android 3.0 devices, there is a blue overscroll effect on a scrollable view. This did not happen with 2.1.4 SDK. \r\n\r\nh3. Sample Code\r\n\r\n{noformat}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor : '#444'\r\n});\r\n\r\nvar swiperContainerView = Ti.UI.createView({\r\n height : 100,\r\n width : 300,\r\n backgroundColor : '#cde',\r\n});\r\n\r\n// Create a list of label views to swipe\r\nvar viewList = new Array();\r\nfor (i = 0; i < 3; i++) {\r\n\r\n viewList[i] = Titanium.UI.createLabel({\r\n text : 'labelView ' + (i+1),\r\n color : '#000',\r\n height : Ti.UI.FILL,\r\n textAlign : 'center',\r\n });\r\n}\r\n\r\n// Create swiper an populate with labels\r\nswiper = Ti.UI.createScrollableView({\r\n backgroundColor : '#cde',\r\n views : viewList,\r\n width : Ti.UI.FILL,\r\n height : Ti.UI.FILL\r\n});\r\n\r\nswiperContainerView.add(swiper);\r\n\r\nwin.add(swiperContainerView);\r\n\r\nwin.open();\r\n{noformat}\r\n\r\nh3. Steps to Reproduce\r\n\r\n1. Run the app and scroll to the end to notice the blue effect.\r\n", "attachment": [], "flagged": false, "summary": "Android: Hide the Overscroll effect on Scrollable view", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 3.0.0.GA\r\nPlatform OS: 4.0, 4.1.2 etc", "comment": { "comments": [ { "id": "237108", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test Case \n{code}\nvar win = Titanium.UI.createWindow({\n backgroundColor : 'white'\n});\nvar i=0;\n//Scrollable View\nvar scrollableView = Ti.UI.createScrollableView({\n\twidth:'49%',\n\theight:'38%',\n\tleft:0,\n\ttop:0,\n\tbackgroundColor:'gray',\n})\nfor (i=0;i<5;i++)\n{\n\tvar container = Ti.UI.createView({});\n\tvar label = Ti.UI.createLabel({\n\t\ttext: 'SCROLLABLE '+i,\n\t\tcolor:'white'\n\t});\n\tcontainer.add(label);\n\tscrollableView.addView(container);\n}\n\n//ScrollView\nvar scrollView = Ti.UI.createScrollView({\n\twidth:'49%',\n\theight:'38%',\n\tright:0,\n\ttop:0,\n\tbackgroundColor:'gray',\n\tlayout:'vertical'\n})\n\nfor (i=0;i<20;i++)\n{\n\tvar container = Ti.UI.createView({\n\t\theight:100\n\t});\n\tvar label = Ti.UI.createLabel({\n\t\ttext: 'SCROLLVIEW '+i,\n\t\tcolor:'white'\n\t});\n\tcontainer.add(label);\n\tscrollView.add(container);\n}\n\n//TableView\nvar tableView = Ti.UI.createTableView({\n\twidth:'49%',\n\theight:'38%',\n\tleft:0,\n\ttop:'40%',\n})\nvar data = [];\nfor (i=0;i<100;i++)\n{\n\tvar row = Ti.UI.createTableViewRow({title:'ROW '+i});\n\tdata.push(row);\n}\ntableView.data=data;\n//WebView\nvar webView = Ti.UI.createWebView({\n\twidth:'49%',\n\theight:'38%',\n\tright:0,\n\ttop:'40%',\n\turl: 'http://www.google.com'\n});\n\nvar b1 = Ti.UI.createButton({\n\tleft:0,\n\tbottom:0,\n\ttitle:'ALWAYS',\n\theight:'10%'\n});\n\nvar b2 = Ti.UI.createButton({\n\tright:0,\n\tbottom:0,\n\ttitle:'NEVER',\n\theight:'10%'\n});\n\nvar b3 = Ti.UI.createButton({\n\tbottom:0,\n\ttitle:'CONTENT',\n\theight:'10%'\n});\n\nvar status = Ti.UI.createLabel({\n\ttop:'80%',\n\twidth:Ti.UI.FILL,\n\tcolor:'black',\n\theight:'10%'\n})\n\nvar updateStatus = function(){\n\tstatus.text = 'CURRENT MODE - SCROLLABLEVIEW: '+scrollableView.overScrollMode+'. SCROLLVIEW: '+scrollView.overScrollMode+'. TABLEVIEW: '+tableView.overScrollMode+'. WEBVIEW: '+webView.overScrollMode;\n};\n\nb1.addEventListener('click',function(){\n\tscrollableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_ALWAYS;\n\tscrollView.overScrollMode = Ti.UI.Android.OVER_SCROLL_ALWAYS;\n\ttableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_ALWAYS;\n\twebView.overScrollMode = Ti.UI.Android.OVER_SCROLL_ALWAYS;\n\tupdateStatus();\n});\nb2.addEventListener('click',function(){\n\tscrollableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_NEVER;\n\tscrollView.overScrollMode = Ti.UI.Android.OVER_SCROLL_NEVER;\n\ttableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_NEVER;\n\twebView.overScrollMode = Ti.UI.Android.OVER_SCROLL_NEVER;\n\tupdateStatus();\n});\nb3.addEventListener('click',function(){\n\tscrollableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS;\n\tscrollView.overScrollMode = Ti.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS;\n\ttableView.overScrollMode = Ti.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS;\n\twebView.overScrollMode = Ti.UI.Android.OVER_SCROLL_IF_CONTENT_SCROLLS;\n\tupdateStatus();\n});\nwin.add(scrollableView);\nwin.add(scrollView);\nwin.add(tableView);\nwin.add(webView);\nwin.add(status);\nwin.add(b1);\nwin.add(b2);\nwin.add(b3);\n\nwin.addEventListener('open',updateStatus);\n\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T21:27:26.000+0000", "updated": "2013-02-04T21:27:26.000+0000" }, { "id": "237109", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending https://github.com/appcelerator/titanium_mobile/pull/3841", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T21:37:10.000+0000", "updated": "2013-02-04T21:37:10.000+0000" }, { "id": "237469", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Note to QE:\nWe are only controlling the overscroll mode. Not the edge effects on views associated with the overscroll event. Best to run the above test case on a device with API level 3.0 or above. I personally tested this on SIII running 4.1.1", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T18:23:42.000+0000", "updated": "2013-02-06T18:23:42.000+0000" }, { "id": "240411", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per Vishal.\nVerified control of overscroll mode with:\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK, build: 3.1.0.v20130228214607\nDevice:\nNexus4 Android version 4.2", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-01T22:59:57.000+0000", "updated": "2013-03-01T22:59:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }