Breezy wrote:
> ListView, okay, that works.  Now how do I make multiple TextViews and
> insert them into the ListView on the fly?

A cursory description of the process can be found here:

http://developer.android.com/guide/topics/ui/binding.html

(in their case they use a Spinner, though the technique is similar)

The Notepad tutorial shows a ListActivity with a ListView:

http://developer.android.com/guide/tutorials/notepad/index.html

as does the Hello, ListView sample:

http://developer.android.com/guide/tutorials/views/hello-listview.html

The API samples in your SDK have a dozen or so using ListView.

If you are trying to get fancier with your ListViews, I have an excerpt
from one of my books that discusses that process:

http://commonsware.com/Android/excerpt.pdf

with sample code available from:

http://commonsware.com/Android

In a nutshell, you create an Adapter object that maps from raw data
(e.g., an array of strings) to Views that go in each row (e.g., a
TextView). How simple or complex that process is depends on how fancy
the rows are. For really simple rows, it's about four lines of code.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android 1.5 Programming Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
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