3

Of the items currently displayed on-screen within a RecyclerView, is there any way to obtain the View id of the one in the centre?

For example, if there are five items currently displayed, give me the id for the 3rd one.

Fifer Sheep
  • 2,900
  • 2
  • 30
  • 47
  • 1
    I think i know what you are asking, but could you post your code? Have you tried using Log.i(); to see what is happening in your onClick method? – Mr. Concolato Jul 30 '14 at 17:21
  • Thank you for the help @mr-concolato, but yigit's question gives me the answer I was looking for! – Fifer Sheep Jul 31 '14 at 10:38

0 Answers0