Using Android's RecyclerView
, I would like to change the background of a given Item (even if it isn't currently visible).
All the tutorials I saw shows how to access a view using a OnItemClickListener
, but in my case that has to be done programmatically without any action from the user.
I simply want to retrieve the view, and being able to apply functions such as .setBackground()
or findViewById()
on it.
How can I achieve this, having the position of the view i want to edit ?