I am using Google Maps API v2 for Android, And I have used Marker
class to add a marker to the map fragment like this:
map.addMarker(new MarkerOptions().position(new LatLng(23.599114, 39.203938))
.title("عربي"));
but on the map it shows an empty title.
any ideas?
我认为这是一个错误,直到现在还没有真正的解决方案,但你可以在标题中添加一个unicode从左到右的标记,如下所示:
.title("\u200e" +"عربي")
If someone reads this post 2017:
Another reason a view is empty might be a restriction to
singleLine = true
at some point, eg your getInfoContents()
implementation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.