Google Maps Android API v2, Marker title/snippet wrong display

后端 未结 3 2227

I use Google Maps Android API v2 with Android to show current position with nearby markers. Nearby places locations and titles are received using Google Places API.

The

3条回答
  •  余生分开走
    2021-02-16 00:30

    Adding more info regarding CommnsWare answer:

    As of the moment I am writing this commend, it seems that the map itself is layout_direction="LTR" which means that your titles will not be flipped on RTL desktops. The solution is simple:

    
        ....
    
    

    Note that I am using the locale's layout direction and not the inherited direction. I commented this on the corresponding Google bug report here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5608#makechanges

提交回复
热议问题