Skip to content
Browse files

Merge pull request #10 from krase/patch-1

Move needle into the middle of the CompassImageView by using its width
  • Loading branch information...
2 parents 883fd8f + 1ed8029 commit d3d7bc8f0142c85a1667ca7cc24c95501f6ddb20 @gkfabs committed Oct 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/androad/ui/common/views/CompassImageView.java
View
2 src/org/androad/ui/common/views/CompassImageView.java
@@ -71,7 +71,7 @@ protected void onDraw(final Canvas canvas) {
super.onDraw(canvas);
canvas.restore();
- canvas.drawBitmap(this.mNeedleBitmap, 22 + this.getPaddingLeft(), 0 + this.getPaddingTop(), this.mPaint);
+ canvas.drawBitmap(this.mNeedleBitmap, halfWidth - this.getPaddingLeft(), 0 + this.getPaddingTop(), this.mPaint);
}
}

0 comments on commit d3d7bc8

Please sign in to comment.
Something went wrong with that request. Please try again.