开发者

Android -- Displaying HorizontalScrollView of WebViews

So, the idea is to be able to view a very simple html page (text and one image) that can scroll vertically and place this view in a 开发者_运维百科horizontal list that scrolls and snaps to the closest html page.

I've read over and over that, for performance reasons, it isn't a good idea to place web/scroll views inside list views. I'm trying to avoid writing a new view from scratch but am lost as to what direction I should go.


To get the snapping to occur, you may want to consider using a Gallery. It essentially works the same as the list view but is horizontal.

To avoid using a webview, consider using the Html.fromSource function. See this post for details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜