@Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        mAttached = false;
    }
FrameLayout which caches the hardware layer if available.
<p/>
If it's not posted twice the layer either wont be built on start, or it'll be built twice.
menudrawer/src/net/simonvt/menudrawer/BuildLayerFrameLayout.java