[TIMOB-3334] Android: ScrollView in a Scrollview does not scroll
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-07T22:49:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, defect, rplist, scrollview |
Reporter | Alan Leard |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:42:26.000+0000 |
Updated | 2017-06-07T22:49:54.000+0000 |
Description
Problem
If a scrollView is placed within another scrollView, the child scrollView will not scroll, but does receive the touchmove event. This function works on iOS but not on Android.
Test Code
var win = Titanium.UI.createWindow({
backgroundColor:'#fff'
}); var scrollView = Titanium.UI.createScrollView({
contentWidth:'auto',
contentHeight:'auto',
top:0,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:true
}); var view = Ti.UI.createView({
backgroundColor:'#336699',
borderRadius:10,
width:300,
height:2000,
top:10
});
var scrollView2 = Titanium.UI.createScrollView({
contentWidth:'auto',
contentHeight:'auto',
width:200,
height:200,
top:50,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:true,
scrollType:'vertical'
}); var label = Ti.UI.createTextArea({
value:'This is my label.',
height:400,
width:200,
backgroundColor:'#ccc'
}); win.add(scrollView);
scrollView.add(view);
view.add(scrollView2);
scrollView2.add(label);
scrollView2.addEventListener('touchmove',function(){
alert('touchmove');
}); win.open();
Ticket Reference
http://developer.appcelerator.com/helpdesk/view/76393">http://developer.appcelerator.com/helpdesk/view/76393
Closing ticket due to time passed.