I am trying to display a screen filled with data fetched from a
server. The data, if it were HTML, would look something like the
following (try to visualize =) ):

<h1>This Is the Title</h1>
<p>Here is some pertinent info.</p>
<p>Below here is a list with ~1-10 items, depending</p>
<table>
<tr>
<td>This first item is neat!</td>
<td>Looks like we only got two items this time. Who knew?</td>
</tr>
</table>

So I naively tried to put a ListView in a ScrollView. Not only did it
not work, but I've since read all about why it is bad by the likes of
such luminaries as Hackborn and Guy (it nullifies the optimizations,
etc).

Problem is, the half dozen places that said NOT to do it didn't
recommend what I SHOULD do instead, excepting one post by Romain Guy
specifying footer or header use (not suitable in my example, right?).
In other words, it seems like people want to mix a list of items in
among other text data, getting the benefits of a ListAdapter, but this
isn't addressed anywhere that I can find.

So, what is The Right Way to implement my example above? I'm a step
away from trying to add TextViews inside a for loop, which just
doesn't sit right in my gut.

Thank you for your time.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to