1

List & Map Marker clicks

view story
linux-howto

http://stackoverflow.com – I've got an Activity that holds a ListFragment on the left and a SupportMapFragment on the right. List and Map are both backed by the same data. The visual representation of the data on the Map are Markers. I want to be able to perform a click on either a list item or a Marker and get the corresponding item in the other visual representation. Restrictions of the framework and my data are: The Marker class is final and the Marker's id does not have a modificator. This is why I can't use the easiest possible way. "It's important to not hold on to objects (e.g. Marker) beyond the view' (HowTos)