Move 'Reset North' button on Android studio for mapbox

泪湿孤枕 提交于 2020-01-05 04:13:09

问题


I was wondering if there was a way to move the location of the 'Reset North' button that is generated by Mapbox. It is in the top right of the screen where my EditText (search) is, so my EditText blocks it.


回答1:


You can change the placement of the compass with:

mapboxMap.getUiSettings().setCompassMargins(left, top, right, bottom);


来源:https://stackoverflow.com/questions/52832100/move-reset-north-button-on-android-studio-for-mapbox

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