@Override
            public boolean onTouch(View v, MotionEvent event) {
                if (event.getAction() != MotionEvent.ACTION_CANCEL && getFromActivity() != null) {
                    if (getFromActivity() != null && !(getFromActivity() instanceof DialogXFloatingWindowActivity)) {
                        return getFromActivity().dispatchTouchEvent(event);
                    }
                }
                return false;
            }
@author: Kongzue
@github: https://github.com/kongzue/
@homepage: http://kongzue.com/
@mail: myzcxhh@live.cn
@createTime: 2021/12/20 14:58
DialogX/src/main/java/com/kongzue/dialogx/util/DialogXFloatingWindowActivity.java