DragPointView
DragPointView copied to clipboard
initParams中的type应该做一下适配
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { windowParams.type = WindowManager.LayoutParams.TYPE_TOAST; } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { windowParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; }else{ windowParams.type = WindowManager.LayoutParams.TYPE_PHONE; }
还要申请悬浮窗权限