There is a RecyclerView, how to get the name of this element when you click on an item?
- The essence of the problem is completely incomprehensible, but I wrote something like an answer. - Yuriy SPb ♦
|
1 answer
You have an adapter that displays your data.
You have a click listener hung on an element in the onBindViewHolder
adapter onBindViewHolder
. In the arguments of this method, you have the position of the current element. It is for her that you receive and display data.
Those. you just need to bring your data through your adapter to your onClick.
- thanks helped)))) - java
|