From cf3689f9a1ca74000a6b4a469973a88c973e8332 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Tue, 11 Aug 2015 15:51:01 -0500 Subject: [PATCH] #1856 - Adjusting compas layout back to 10dp --- .../src/main/java/com/mapbox/mapboxgl/views/MapView.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java index d6e878ad884..33a0682b689 100644 --- a/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java +++ b/android/java/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxgl/views/MapView.java @@ -302,8 +302,8 @@ private void initialize(Context context, AttributeSet attrs) { mCompassView.setContentDescription(getResources().getString(R.string.compassContentDescription)); LayoutParams lp = new FrameLayout.LayoutParams((int)(48 * mScreenDensity), (int)(48 * mScreenDensity)); lp.gravity = Gravity.TOP | Gravity.END; - int twentyDp = (int)(20 * mScreenDensity); - lp.setMargins(twentyDp, twentyDp * 4, twentyDp, twentyDp); + int tenDp = (int)(10 * mScreenDensity); + lp.setMargins(tenDp, tenDp, tenDp, tenDp); mCompassView.setLayoutParams(lp); addView(mCompassView); mCompassView.setOnClickListener(new CompassOnClickListener());