开发者

Android touch events with multiple views

开发者 https://www.devze.com 2023-02-16 16:22 出处:网络
How can I have different views accepting different touch events at the sa开发者_运维技巧me time?You need to override onTouchEvent for the views, and then ensure that you return false so that the touch

How can I have different views accepting different touch events at the sa开发者_运维技巧me time?


You need to override onTouchEvent for the views, and then ensure that you return false so that the touches can fall through. Touches will start at the "top" and fall through each View in your layout till they reach the bottom inner-most view.

0

精彩评论

暂无评论...
验证码 换一张
取 消