androidandroid-maps

How to move the Android Google Maps API Compass Position


Does anyone know if you can change the compass position within the map?

All I can find is how to enable or disable it. But I need to move it down a bit so my overlay is not obstructing it.

enter image description here


Solution

  • Use GoogleMap.setPadding() method:

    https://developers.google.com/maps/documentation/android/map#map_padding