/** * Sets the margins of the attribution view. * * @param left The left margin in pixels. * @param top The top margin in pixels. * @param right The right margin in pixels. * @param bottom The bottom margin in pixels. */ public void setAttributionMargins(int left, int top, int right, int bottom) { attributionSettings.setMargins(new int[] {left, top, right, bottom}); mapView.setAttributionMargins(left, top, right, bottom); }
/** * Sets the margins of the logo view. Use this to change the distance of the Mapbox logo from the * map view edge. * * @param left The left margin in pixels. * @param top The top margin in pixels. * @param right The right margin in pixels. * @param bottom The bottom margin in pixels. */ public void setLogoMargins(int left, int top, int right, int bottom) { logoSettings.setMargins(new int[] {left, top, right, bottom}); mapView.setLogoMargins(left, top, right, bottom); }