我不明白什么时候ACTION_OUTSIDE被触发。请给我一个例子。
I don't understand when ACTION_OUTSIDE is triggered. Please give me an example.
该文档的给这个神秘的说明:
The doc's give this cryptic description:
常数的getAction():一个运动 已经发生了正常的外 用户界面元素的界限。这不 不能提供一个完整的手势,但只 的初始位置 移动/触摸。
Constant for getAction(): A movement has happened outside of the normal bounds of the UI element. This does not provide a full gesture, but only the initial location of the movement/touch.
http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_OUTSIDE
我相信它仅用于点击当前的活动(例如一个对话框)之外。看看WindowManager.LayoutParams
I believe it is only used for clicking outside of the current activity (for example a dialog). Check out WindowManager.LayoutParams
上一篇:权限拒绝:...需要android.permission.WRITE_EXTERNAL_STORAGE权限、android、WRITE_EXTERNAL_STORAG、permission