Search code examples
androidwebviewscrollviewandroid-contentprovider

android free scrolling view


I have a scrollview with both horizontal and vertical scrolling but I would like this activity to scroll as freely as webviews do. Currently with my default implementation it is a very jerky scrolling, and it cannot scroll diagonally. It will scroll left and right, but you cannot scroll up and down unless you stop scrolling (lift your finger up) wait, and then scroll up and down.

What is the best solution for this? I do not want to implement a contentprovider + webview for this solution.

Thank you


Solution

  • For diagonal scrolling, there has been some opensource code created in a custom class here. Note that you should read the comments, as they include important information about the XML file implementation of this custom 2D scroll class. As for the jerkiness problem, if it persists after this implementation, please answer my comment under your question.