[TIMOB-9019] Android: `ScrollableView` should support `scrollingEnabled` property
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-05-07T15:14:51.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-10 Core |
| Components | Android |
| Labels | core, module_scrollableview, qe-testadded |
| Reporter | Russell Frank |
| Assignee | Bill Dawson |
| Created | 2012-05-03T10:48:52.000+0000 |
| Updated | 2014-02-24T19:48:39.000+0000 |
Description
The
scrollingEnabled property should be supported on ScrollableView s on Android.
Opened pull request [#2130](https://github.com/appcelerator/titanium_mobile/pull/2130) which addresses this issue.
Test case from contributor was:
After 5 seconds, the view should stop being scrollable. Five seconds after that, it should once again be able to be scrolled.var win = Ti.UI.createWindow({layout:'horizontal'}); var view1 = Ti.UI.createView({ backgroundColor:'#123', width: 250 }); var view2 = Ti.UI.createView({ backgroundColor:'#246', width: 250 }); var view3 = Ti.UI.createView({ backgroundColor:'#48b', width: 250 }); var scrollableView = Ti.UI.createScrollableView({ views: [view1,view2,view3], showPagingControl: true, width: 300, height: 430 }); win.add(scrollableView); win.open(); setTimeout(function () { scrollableView.scrollingEnabled = false; setTimeout(function () { scrollableView.setScrollingEnabled(true); }, 5000); }, 5000);Closing issue Tested with Ti Studio build 2.1.0.201206172244 Ti Mobile SDK2.1.0.v20120618134156 hash r00905cd0 OSX Lion 10.7.3 Nexus S OS 4.0.4 The expected behavior is shown
Anvil test case added. https://github.com/appcelerator/titanium_mobile/pull/4943