Chris Allen
Chris Allen

Reputation: 369

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.

Upvotes: 0

Views: 856

Answers (1)

Noel
Noel

Reputation: 7410

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.

Upvotes: 1

Related Questions