tugce
tugce

Reputation: 661

android detecting touch

I have a webview, and a touch listener on the viewContainer. What I want is, when a touch is detected lights out mode is on, and also if that touch is on a clickable area over webview that click must do his work.

Now touchlistener just not working over my webview.

Here is my similar question, which is not answered: https://stackoverflow.com/questions/8433718/view-lights-out-mode

I will be really appreciate your answer, thanks.

Upvotes: 0

Views: 200

Answers (1)

Gökhan Barış Aker
Gökhan Barış Aker

Reputation: 4545

There is onInterseptTouchEvent(...), where you can track touch events on their way to childviews and consume them in the parentview. Thus, you might consume first touch if lights are out. Good luck :)

Upvotes: 1

Related Questions