Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3334] Android: ScrollView in a Scrollview does not scroll

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T22:49:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, defect, rplist, scrollview
ReporterAlan Leard
AssigneeIngo Muschenetz
Created2011-04-15T03:42:26.000+0000
Updated2017-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

Comments

  1. Lee Morris 2017-06-07

    Closing ticket due to time passed.

JSON Source