private var disableAllClick: Boolean = false
//禁用所有触摸事件
fun setDisableAllClick(disableAllClick: Boolean): BaseActivity {
this.disableAllClick = disableAllClick
return this
}
override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
return if (!disableAllClick) {
super.dispatchTouchEvent(ev)
} else {
disableAllClick
}
}