André
André

Reputation: 91

Recyclerview get item by screen position x/y

Is it somehow possible to get an item of a recyclerview at a specific screen position (x and y coordinate)?

Upvotes: 4

Views: 3140

Answers (1)

You can get View of an item at specific coordinates with this method findChildViewUnder.

View itemView = recyclerView.findChildViewUnder(x, y);

Upvotes: 7

Related Questions