I'm very new to Android, and starting on my first app. I've gotten the basics working, but I'm not sure how to lay out the next part of my app.
My goal is to show short bits of content (several paragraphs each), each of which comes to me from the API as HTML. My first thought was to use a ListView, with TextViews for each list item, but there are too many HTML tags/features that TextView doesn't understand. (The content is often very basic HTML, but it's not uncommon to have tables and other unsupported formatting.) So, it looks like I'll need to use a WebView instead. However, I'm wary of just dropping in a WebView in place of the TextView, since there will typically be 30-40 items in the list, sometimes up to 100 or so. I'm under the impression that WebView is kind of heavy, so having 100+ loaded in the same activity may not be a good idea. Am I right? If so, are any of the following alternatives good ones? 1. I could concatenate the snippets together and load the whole thing in a single WebView, no ListView (essentially what the website itself does), but I worry that that wouldn't be responsive enough: it might take too long to start showing content on starting the activity. 2. I guess I could try to do something fancy with automatically appending new items to the ListView as they get to the bottom, and removing already-seen ones from the top...except that (a) I feel like that might make scrolling unintuitive, and (b) honestly, that might be a little complicated for me right now. 3. I could do explicit pagination and show only, say, 10 at a time. 4. I could just show short previews of each item in a TextView, and then only show the full content (in a WebView) if they touch and go to the item detail view. Thoughts? How would you approach this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

