开发者

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜