Skip to content

怎么设置tips显示的时候,主界面可以继续滑动 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bakonMa opened this issue Apr 3, 2020 · 1 comment
Closed

怎么设置tips显示的时候,主界面可以继续滑动 #11

bakonMa opened this issue Apr 3, 2020 · 1 comment

Comments

@bakonMa
Copy link

bakonMa commented Apr 3, 2020

怎么设置tips显示的时候,主界面可以继续滑动
现在是必须关闭后,才能滑动,因为设置背景不变暗,体验不太好

@bakonMa
Copy link
Author

bakonMa commented Apr 3, 2020

我设置了
tip.isFocusable = false
滑动直接关闭tips,可以到达我的效果
如果要处理tip点击的话是不是要设置setTouchInterceptor了?
没有测试 哈哈
tip.setTouchInterceptor(object : View.OnTouchListener {
override fun onTouch(view: View, motionEvent: MotionEvent): Boolean {
if (motionEvent.y >= 0 && motionEvent.y <= view.measuredHeight) {//PopupWindow内部的事件
return false
} else {
tip.dismissTip()
}
return false
}

})

@bakonMa bakonMa closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant