-1

I have a listView with some items. Every item has a title, picture, and description. Now I'd like to click on particular activity and open new activity, which would be detailed view for particular item. So it needs to have the title and picture from previous activity, and a new, bigger description.

Could someone tell me how to do that?

natansalda
  • 65
  • 4
  • 10

1 Answers1

1

For passing images to activities see this answer

likewise you can pass the title & description

intent.putExtra("TITLE","title value");
intent.putExtra("DESCRIPTION","Description value")
Ahmad Musa
  • 76
  • 1
  • 7
  • Thanks, but the problem is not an intent in a traditional way so to say. The problem is that new activity must to automatically take the position of the item in the listview and load proper values. How do I "catch" those values? – natansalda Nov 19 '17 at 21:49
  • you mean you need to change this item View not starting new activity?! – Ahmad Musa Nov 19 '17 at 21:53
  • no, I mean the program needs to know itself which line was clicked, what position it was, and thus which data should be displayed in new activity. Sorry if I am not clear, I am really new to programming. – natansalda Nov 19 '17 at 21:57