library/src/main/java/com/mikepenz/crossfadedrawerlayout/view/CrossfadeDrawerLayout.java
private View wrapSliderContent(View child, int index) {
        //TODO !!
        if (index == 1 && child.getId() != -1) {
            mLargeView = (ViewGroup) child;
            mContainer = new ScrimInsetsRelativeLayout(getContext());
            mContainer.setGravity(Gravity.START);
            mContainer.setLayoutParams(child.getLayoutParams());

            mContainer.addView(mLargeView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);

            mSmallView = new LinearLayout(getContext());
            mContainer.addView(mSmallView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);

            mLargeView.setAlpha(0);
            mLargeView.setVisibility(View.GONE);

            //correct fitsSystemWindows handling
            mContainer.setFitsSystemWindows(true);
            mSmallView.setFitsSystemWindows(true);

            return mContainer;
        }
        return child;
    }
private View wrapSliderContent(View child, int index) {
        //TODO !!
        if (index == 1 && child.getId() != -1) {
            mLargeView = (ViewGroup) child;
            mContainer = new ScrimInsetsRelativeLayout(getContext());
            mContainer.setGravity(Gravity.START);
            mContainer.setLayoutParams(child.getLayoutParams());

            mContainer.addView(mLargeView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);

            mSmallView = new LinearLayout(getContext());
            mContainer.addView(mSmallView, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);

            mLargeView.setAlpha(0);
            mLargeView.setVisibility(View.GONE);

            //correct fitsSystemWindows handling
            mContainer.setFitsSystemWindows(true);
            mSmallView.setFitsSystemWindows(true);

            return mContainer;
        }
        return child;
    }
this will wrap the view which is added to the slider into another layout so we can then overlap the small and large view

@param child
@param index
@return