private void drawIndicator(Canvas canvas) {
        Integer position = (Integer) mActiveView.getTag(R.id.mdActiveViewPosition);
        final int pos = position == null ? 0 : position;
        if (pos == mActivePosition) {
            updateIndicatorClipRect();
            canvas.save();
            canvas.clipRect(mIndicatorClipRect);

            int drawLeft = 0;
            int drawTop = 0;
            switch (getPosition()) {
                case LEFT:
                case TOP:
                    drawLeft = mIndicatorClipRect.left;
                    drawTop = mIndicatorClipRect.top;
                    break;

                case RIGHT:
                    drawLeft = mIndicatorClipRect.right - mActiveIndicator.getWidth();
                    drawTop = mIndicatorClipRect.top;
                    break;

                case BOTTOM:
                    drawLeft = mIndicatorClipRect.left;
                    drawTop = mIndicatorClipRect.bottom - mActiveIndicator.getHeight();
            }

            canvas.drawBitmap(mActiveIndicator, drawLeft, drawTop, null);
            canvas.restore();
        }
    }
Attaches the menu drawer to the window.
menudrawer/src/net/simonvt/menudrawer/MenuDrawer.java