kristby
kristby

Reputation: 81

ListActivity with two lists

I need to insert data from two list (populate from cursors) in the same activity.

The layout have to be:

-TextView1- List from table1 cursor

-TextView2- List from table2 cursor

Is it possible?

Upvotes: 1

Views: 587

Answers (2)

Steve Prentice
Steve Prentice

Reputation: 23514

Yes. This is possible. Just create a layout that contains both lists and initialize them in your activity as you normally would. If you use ListActivity, it will only handle one list for you. You'll need to do it the normal way for your second list.

Upvotes: 0

inazaruk
inazaruk

Reputation: 74780

Yes, its possible. Use simple Activity with custom layout that has two ListViews.

Its easier then tweaking ListActivity doing something it was not designed for.

Upvotes: 2

Related Questions