在Android Studio上为Mapbox移动“向北重置”按钮

时间:2018-10-16 09:21:08

标签: android mapbox

我想知道是否有办法移动Mapbox生成的“向北重置”按钮的位置。它位于屏幕右上角的 <sustainsys.saml2 entityId="https://saml-dc.qa.mycompany.com/Saml2/Acs" expectSignatureInXml="false" returnUrl="https://saml-dc.qa.mycompany.com" minIncomingSigningAlgorithm="SHA256" authenticateRequestSigningBehavior="Never"> <metadata cacheDuration="0:0:42" validDuration="7.12:00:00" wantAssertionsSigned="false"> <requestedAttributes> <add name="Minimal" /> </requestedAttributes> </metadata> <identityProviders> <add entityId="https://sts.windows.net/86e70697-498c-45e7-862a-c66e65ed3864/" signOnUrl="https://login.microsoftonline.com/86e70697-498c-45e7-862a-c66e65ed3864/saml2" allowUnsolicitedAuthnResponse="false" binding="HttpRedirect" loadMetadata="true" metadataLocation="https://login.microsoftonline.com/86e70697-498c-45e7-862a-c66e65ed3864/federationmetadata/2007-06/federationmetadata.xml?appid=9a8b9faf-9f86-4e98-806c-9c210642edec"> <!--signingCertificate storeName="My" storeLocation="LocalMachine" findValue="myThumbprint" x509FindType="FindByThumbprint" /--> </add> </identityProviders> (搜索)所在的位置,因此我的EditText阻止了它。

1 个答案:

答案 0 :(得分:1)

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

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