Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9019] Android: `ScrollableView` should support `scrollingEnabled` property

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-05-07T15:14:51.000+0000
Affected Version/sRelease 2.0.1
Fix Version/sRelease 2.1.0, Sprint 2012-10 Core
ComponentsAndroid
Labelscore, module_scrollableview, qe-testadded
ReporterRussell Frank
AssigneeBill Dawson
Created2012-05-03T10:48:52.000+0000
Updated2014-02-24T19:48:39.000+0000

Description

The scrollingEnabled property should be supported on ScrollableView s on Android.

Comments

  1. Russell Frank 2012-05-03

    Opened pull request [#2130](https://github.com/appcelerator/titanium_mobile/pull/2130) which addresses this issue.
  2. Bill Dawson 2012-05-07

    Test case from contributor was:
       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);
       
    After 5 seconds, the view should stop being scrollable. Five seconds after that, it should once again be able to be scrolled.
  3. Michael Pettiford 2012-06-18

    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
  4. jithinpv 2013-11-10

    Anvil test case added. https://github.com/appcelerator/titanium_mobile/pull/4943

JSON Source