0
在我的自定義視圖,我在騎如何將Android通過MotionEvent EV)
public boolean onInterceptTouchEvent(MotionEvent ev);
在某些運動事件中返回false
,
但我要問另一種觀點來處理它,我怎麼能'轉發這MotionEvent
到另一種觀點?
謝謝。
在我的自定義視圖,我在騎如何將Android通過MotionEvent EV)
public boolean onInterceptTouchEvent(MotionEvent ev);
在某些運動事件中返回false
,
但我要問另一種觀點來處理它,我怎麼能'轉發這MotionEvent
到另一種觀點?
謝謝。
從onInterceptTouch事件返回false將觸摸事件傳遞給ViewGroup
的孩子,返回true則保留ViewGroup
本身。見the docs,他們對此的解釋非常詳細。