I created list activity calls as Category List to dynamically display a list of categories from the Internet by parsing an XML file. The XML file contains the values ββ"ID" (identifier of a specific category) and "title" (name of the category). So I did this, I parsed the XML file and put together an identifier and a header in an ArrayList called categories using a SAX parser.
In the list activity, I have a new array of strings and a title for each category is added. What I want to do is assign a category identifier to each category shown in the list view and use the identifier to get the corresponding view for that category. Is there a way to assign an identifier to each of the items in the list.
Regards dj
source
share