2021年4月11日星期日

Change ImageView in RecyclerView

I am currently working on a simple android app and I'd like to change an item in my recycler view. Nothing crazy needs to happen, just changing the image asset when a button, that is not in the recycler view, is clicked through a given index of the recycler view item.

Eg. If the button is clicked then the image view in the recycler view at position 5 will be changed.

I've been looking around for a way to do this without having to implement a mass of code, I feel like there should be a reasonably simple way to do this that I just can't figure out.

Many thanks for any help.

https://stackoverflow.com/questions/67048003/change-imageview-in-recyclerview April 12, 2021 at 01:15AM

没有评论:

发表评论