public void setMenuSize(final int size) {
        mMenuSize = size;
        if (mDrawerState == STATE_OPEN || mDrawerState == STATE_OPENING) {
            setOffsetPixels(mMenuSize);
        }
        requestLayout();
        invalidate();
    }
Indicates whether the current layer type is {@link android.view.View#LAYER_TYPE_HARDWARE}.
menudrawer/src/net/simonvt/menudrawer/DraggableDrawer.java