Assigning ID to a Row in an Android ListView
- by Chris
I have a ListView. When an item on the ListView is tapped, it loads a SubView. I want to assign an ID to each row of the ListView, so I can pass that ID along to the SubView. How do I assign a specific ID to each row in the ListView?
Here is how I am currently loading the ListView:
setListAdapter(new ArrayAdapter<String>(this, R.layout.list_item, mArrayList));