Kwolo2
Kwolo2

Reputation: 21

How to get on item click listener the name of the layout clicked inside the item of a list view?

I have a list view, for which I implemented a custom adapter. Each item(row) of the list view is composed of several linear layouts. So when I implement the OnItemClickListener, I can't find a solution to get the name or the id of the linear layout clicked. Can I find any help to solve this problem?

Upvotes: 1

Views: 31

Answers (1)

Saurabh Dhage
Saurabh Dhage

Reputation: 1711

In tag field in XML you can give name and can access in the code part

Upvotes: 1

Related Questions