You can do it, but only one of the ListViews can be managed by the ListActivity. That's the one that you give android:i...@android:listview (or whatever, sorry). The other one, you have to call something else and so lower-level things to, the stuff that ListActivity is doing below the surface.
So you have to use findViewById() to get the ListView and you have to do setAdapter() on it and set up the listener. It can be done and I'm confident that you'll figure it out. On Mar 22, 3:44 am, rossh <[email protected]> wrote: > Can I have two ListViews on a single ListActivity? I have built the > xml file easy enough, but the code around ListActivity, > setListAdapter(), getListView() and the like, all seem to be designed > around one ListView per activity. How to get 2 ListViews in one > screen? > > Thanks rossh -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

