开发者

Android -- Displaying HorizontalScrollView of WebViews

开发者 https://www.devze.com 2023-02-06 17:38 出处:网络
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

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

精彩评论

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