I have a recycler view adapter. So it hosts 3 views. Simply each view has ImageView. When a user clicks on image (1 out of 3) It creates new intent to use a photo app and returns it to caller when done. The caller (the activity, which created RecyclerView and its adapter) handles onActivityResult. From there I need to set a thumbnail image that was taken in that mentioned intent to the corresponding selected ImageView.
Question. In my Activity, how do I know which imageView (out of available 3) to modify ? My Activity knows only a position of which item in recycler view adapter clicked on.
Is it possible to somehow get a reference to a particular imageView in the adapter by only using position?
So something like this: from activity: adapter.getImageView(position)
EDIT: So my solution was: I was keeping track of all ImageViews in the adapter and stored their ref in ArrayList in the `onBindViewHolder. so now I can just use adapter.getImageView(position)