@Override
    protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) {
        setMeasuredDimension(measureWidth(widthMeasureSpec), measureHeight(heightMeasureSpec));
    }
pixel size of the square arrow bitmap
main/src/main/java/cgeo/geocaching/ui/CompassMiniView.java