{ "id": "63966", "key": "TIMOB-3334", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-07T22:49:54.000+0000", "created": "2011-04-15T03:42:26.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "rplist", "scrollview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-07T22:49:54.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": "{html}

Problem

\r\n

If a scrollView is placed within another scrollView, the child\r\nscrollView will not scroll, but does receive the touchmove event.\r\nThis function works on iOS but not on Android.

\r\n

Test Code

\r\n

var win = Titanium.UI.createWindow({

\r\n
\r\nbackgroundColor:'#fff'\r\n
\r\n

}); var scrollView = Titanium.UI.createScrollView({

\r\n
\r\ncontentWidth:'auto',\r\ncontentHeight:'auto',\r\ntop:0,\r\nshowVerticalScrollIndicator:true,\r\nshowHorizontalScrollIndicator:true\r\n
\r\n

}); var view = Ti.UI.createView({

\r\n
\r\nbackgroundColor:'#336699',\r\nborderRadius:10,\r\nwidth:300,\r\nheight:2000,\r\ntop:10\r\n
\r\n

});

\r\n

var scrollView2 = Titanium.UI.createScrollView({

\r\n
\r\ncontentWidth:'auto',\r\ncontentHeight:'auto',\r\nwidth:200,\r\nheight:200,\r\ntop:50,\r\nshowVerticalScrollIndicator:true,\r\nshowHorizontalScrollIndicator:true,\r\nscrollType:'vertical'\r\n
\r\n

}); var label = Ti.UI.createTextArea({

\r\n
\r\nvalue:'This is my label.',\r\nheight:400,\r\nwidth:200,\r\nbackgroundColor:'#ccc'\r\n
\r\n

}); win.add(scrollView);
\r\nscrollView.add(view);
\r\nview.add(scrollView2);
\r\nscrollView2.add(label);
\r\nscrollView2.addEventListener('touchmove',function(){
\r\nalert('touchmove');
\r\n}); win.open();

\r\n

Ticket Reference

\r\n

http://developer.appcelerator.com/helpdesk/view/76393

{html}", "attachment": [], "flagged": false, "summary": "Android: ScrollView in a Scrollview does not scroll", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "421311", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-07T22:49:54.000+0000", "updated": "2017-06-07T22:49:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }