Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add contentDesctiption to InfoWindow or marker in Android GoogleMaps V2 for TalkBack

I'm working on native Android app which implements the latest GoogleMap API (V2), and I need to make it accessibility complaint (as much as I can).

I can add contentDescription attribute to the mapView and it works fine - TalkBack recognizes it.

However, when I add the same attribute to the layouts of the Marker or InfoWindow, it is just ignored by TalkBack.

Seems like GoogleMap just renders the inflated layout internally to a bitmap and shows this bitmap on the top of the mapview, ignoring contentDescription attribute. As a result, TalkBack doesn't say anything when the corresponding image is clicked.

Anybody has a different experience or knowledge how to add contentDescription to the InfoWindow or Marker with the latest Googlemap ?

Thanks.

like image 251
user1512464 Avatar asked Sep 24 '13 19:09

user1512464


1 Answers

For marker, i used marker.setTitile() and it worked, still don't know how to make InfoWindow works.

like image 131
Peter Avatar answered Sep 21 '22 18:09

Peter