Google Android Android Token Header in Arabic

I use the Google Maps API v2 for Android, and I used the Marker class to add a marker to a map fragment as follows:

 map.addMarker(new MarkerOptions().position(new LatLng(23.599114, 39.203938)) .title("عربي")); 

but the map displays a blank title.

any ideas?

+5
source share
2 answers

I think this is a mistake, there is still no real solution, but you can add unicode from left to right in the header, something like this:

 .title("\u200e" +"عربي") 
+20
source

If someone reads this 2017 post:

Another reason an empty view may be a restriction on

singleLine = true

at some point, for example. your implementation of getInfoContents()

+1
source

Source: https://habr.com/ru/post/1206937/


All Articles