在Android Studio上为Mapbox移动“向北重置"按钮 [英] Move 'Reset North' button on Android studio for mapbox

查看:99
本文介绍了在Android Studio上为Mapbox移动“向北重置"按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以移动Mapbox生成的向北重置"按钮的位置.它在屏幕的右上角,是我的EditText(搜索)所在的位置,因此我的EditText阻止了它.

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.

推荐答案

您可以使用以下方法更改指南针的位置:

You can change the placement of the compass with:

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

这篇关于在Android Studio上为Mapbox移动“向北重置"按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆