Non-ASCII title for android map marker

你离开我真会死。 提交于 2019-12-04 17:18:34

I found a hack that seems to work, but still waiting for a real solution.

If I prepend an unicode left-to-right mark to the title, it seems to work no matter if the 1st character is rtl or ltr:

.title("\u200e" + "אני me")

Use a customized InfoWindowAdapter, and set a layout there as you see fit.

Do note that using LinearLayout in the customized InfoWindowAdapter would cause this issue too (which is weird).

Try RelativeLayout instead, or, if you have API 17 and above, set textDirection for each of the TextViews, and it should work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!