Skip to content

Commit

Permalink
mapbox#1856 - Adjusting compas layout back to 10dp
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Aug 11, 2015
1 parent 8174bd1 commit cf3689f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit cf3689f

Please sign in to comment.