onInterceptTouchEvent 方法,
否則自定義ViewGroup無法使用OnclickListener等方法。
具體返回值根據需要返回 true 或 flase
當返回值爲 ture 時,將攔截事件繼續向下傳遞,
public boolean onInterceptTouchEvent(MotionEvent ev) { return true; }
onInterceptTouchEvent 方法,
否則自定義ViewGroup無法使用OnclickListener等方法。
具體返回值根據需要返回 true 或 flase
當返回值爲 ture 時,將攔截事件繼續向下傳遞,
public boolean onInterceptTouchEvent(MotionEvent ev) { return true; }
https://github.com/Molunerfinn/PicGo https://github.com/Molunerfinn/PicGo