[android] #5679 - move logo and attribution to the top right

[android] #5679 - get correct top margin for logo when saving state of MapView
This commit is contained in:
Tobrun Van Nuland
2016-07-14 12:22:52 +02:00
committed by Tobrun
parent 82478e2ea7
commit 39512aaef1
2 changed files with 4 additions and 1 deletions

View File

@@ -516,7 +516,7 @@ public class MapView extends FrameLayout {
// UiSettings - Logo
outState.putInt(MapboxConstants.STATE_LOGO_GRAVITY, uiSettings.getLogoGravity());
outState.putInt(MapboxConstants.STATE_LOGO_MARGIN_LEFT, uiSettings.getLogoMarginLeft());
outState.putInt(MapboxConstants.STATE_LOGO_MARGIN_TOP, uiSettings.getCompassMarginTop());
outState.putInt(MapboxConstants.STATE_LOGO_MARGIN_TOP, uiSettings.getLogoMarginTop());
outState.putInt(MapboxConstants.STATE_LOGO_MARGIN_RIGHT, uiSettings.getLogoMarginRight());
outState.putInt(MapboxConstants.STATE_LOGO_MARGIN_BOTTOM, uiSettings.getLogoMarginBottom());
outState.putBoolean(MapboxConstants.STATE_LOGO_ENABLED, uiSettings.isLogoEnabled());

View File

@@ -20,6 +20,9 @@
app:center_longitude="5.7215506"
app:zoom="11"
app:style_url="@string/style_mapbox_streets"
app:logo_gravity="top|end"
app:attribution_gravity="top|end"
app:logo_margin_right="10dp"
android:layout_below="@id/toolbar"/>
</RelativeLayout>