D
D
DimICE2012-01-29 18:06:03
Java
DimICE, 2012-01-29 18:06:03

Two linked ListView in Android?

Good day to all.
The question is:
I have 2 tables in sqlite that are in a one-to-many relationship.
I want to make the application show 2 ListView.
The first one with elements from the first table.
The second with items from the associated table, depending on the selection made in the first ListView.
Tell me how to implement it ... Or give a link to the manual or an example of such an implementation.
Many thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2012-01-29
@DimICE

You get data from the first table and put it in the first ListView, by the OnItemClickListener event you get the necessary data from the second table. In OnItemClickListener , the selected item can be determined via the view or position/id parameter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question