当将ACTION_OUTSIDE被触发? [英] When would ACTION_OUTSIDE be triggered?

查看:115
本文介绍了当将ACTION_OUTSIDE被触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白什么时候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.

<一个href="http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_OUTSIDE">http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_OUTSIDE

推荐答案

我相信它仅用于点击当前的活动(例如一个对话框)之外。看看<一href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_WATCH_OUTSIDE_TOUCH">WindowManager.LayoutParams

I believe it is only used for clicking outside of the current activity (for example a dialog). Check out WindowManager.LayoutParams

这篇关于当将ACTION_OUTSIDE被触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆