@Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        if (mDragViewResId != -1) {
            setDragView(findViewById(mDragViewResId));
        }
        if (mScrollableViewResId != -1) {
            setScrollableView(findViewById(mScrollableViewResId));
        }
    }
@ Override protected void onFinishInflate ( ) { super . onFinishInflate ( ) ; if ( mDragViewResId != - 1 ) { setDragView ( findViewById ( mDragViewResId ) ) ; } if ( mScrollableViewResId != - 1 ) { setScrollableView ( findViewById ( mScrollableViewResId ) ) ; } }
Set the Drag View after the view is inflated