Chiggins
Chiggins

Reputation: 8397

ListView - Each item having an ID?

Hey, I was curious if there was a way that I can assign each menu item in a ListView its ID from the SQLite database, so that when I do something like onClick, or using a ContextMenu, I can tell what item / row I am referencing to.

Upvotes: 1

Views: 305

Answers (1)

Nathan Schwermann
Nathan Schwermann

Reputation: 31493

Yep when you implement the onItemClickListener the id argument is what you are wanting.

Upvotes: 1

Related Questions