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

Android: ScrollView.scrollTo not behave like iOS (Parity)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Android

      Description

      ScrollView.scrollTo not behave like iOS, no animation, while ScrollToBottom animates well both iOS and Android.

      var win = Ti.UI.createWindow();
       
      var scrollView = Ti.UI.createScrollView({
          layout: 'vertical'
      });
      win.add(scrollView);
       
      // scrollToBottom animates well both iOS and Android
      var button1 = Ti.UI.createButton({
          title: 'scrollToBottom',
          top: 10
      });
      button1.addEventListener('click', function() {
          scrollView.scrollToBottom();
      });
      scrollView.add(button1);
       
      // scrollToBottom don't animate on Android
      var button2 = Ti.UI.createButton({
          title: 'scrollTo 350, 350',
          top: 10
      });
      button2.addEventListener('click', function() {
          scrollView.scrollTo(0, 350);
      });
      scrollView.add(button2);
       
       
      for (var i = 0; i < 20; i++) {
          scrollView.add(Ti.UI.createLabel({
              text: 'Text' + i,
              width: 120,
              top: 10
          }));
      }
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmerzadyan Frankie Merzadyan (Inactive)
                Reporter:
                hazemkhaled Hazem Khaled
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration