I have a view with a map fragment and a recycler v...
# announcements
i
I have a view with a map fragment and a recycler view fragment. How can I ‘talk to’ the map from the recycler view adapter?
stackoverflow 4
d
Have the activity implement a callback interface and pass the activity as a callback object to your fragment that needs to communicate. You could also set up an event bus architecture. You could also implement Rx Subjects to communicate between views.
i
I think I just need the activity context. I just need to get that to the adapter somehow.
d
Your fragment can use getActivity()