Hello,
I am using Eclipse and I am creating an application.
I have a Listview that has a list of items in the main activity.
And I have another activity called (for example): items.
What I want to do:
If I click on Item1 in Main activity, it opens the "items" activity and shows ITEM 1 text, and if I click on Item2 in Main activity, it opens the "items" activity and shows ITEM 2 text.
I am asking because maybe I will have many items in the listview, and I don't want to create a new activity for each item.
How can this be made?
Thanks.
I am using Eclipse and I am creating an application.
I have a Listview that has a list of items in the main activity.
And I have another activity called (for example): items.
What I want to do:
If I click on Item1 in Main activity, it opens the "items" activity and shows ITEM 1 text, and if I click on Item2 in Main activity, it opens the "items" activity and shows ITEM 2 text.
I am asking because maybe I will have many items in the listview, and I don't want to create a new activity for each item.
How can this be made?
Thanks.