Android Mapbox SDK v10: attribution position; UiSettings

Viewed 315

How is possible to adjust the logo and attribution in com.mapbox.mapboxsdk.maps.MapView? In the older SDK v9, it was possible to simply set UiSettings via XML attributes (or by changing UiSettings programmatically).

mapbox:mapbox_uiAttributionMarginBottom="8dp"
mapbox:mapbox_uiAttributionMarginLeft="32dp"

Any idea how to achieve the same effect on Mapbox SDK v10?

2 Answers

I am using Mapbox android 10.4.0 and this is how I do. Hope it helps!

 mapView.attribution.updateSettings {
            marginRight= 56F
            marginLeft= 56F
        }
 mapView.logo.updateSettings {
        marginBottom= 420F
        marginLeft= 320F
    }
Related