Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25634

Android: ScrollableView "cacheSize" cannot by dynamically changed

    Details

    • Story Points:
      1
    • Sprint:
      2018 Sprint 05 SDK, 2018 Sprint 04 SDK

      Description

      On Android, calling ScrollableView's setCacheSize method is throwing error:

      var win = Ti.UI.createWindow();
       
      var view1 = Ti.UI.createView({ backgroundColor:'#123' });
      var view2 = Ti.UI.createView({ backgroundColor:'#246' });
      var view3 = Ti.UI.createView({ backgroundColor:'#48b' });
       
      var scrollableView = Ti.UI.createScrollableView({
        views:[view1,view2,view3],
        showPagingControl:true
      });
       
      win.add(scrollableView);
      win.open();
       
      setTimeout(function (){
          scrollableView.setCacheSize(3);    // TypeError: setCacheSize is not a function
      }, 5000);
      
      

      I also looked out in the SDK source code & seems this method is missing in Android (perhaps iOS as well) source code.

      There's no way at present we can set dynamic cacheSize. we can set it at creation only.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              prashant_saini Prashant Saini
              Reviewer:
              Gary Mathews
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6067
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code