2

is it possible to intercept and apply some custom effects/color correction before android webview's gets rendered on the screen. I want the web-view to stay responsive to touch interactions after applying the effects.

thunderbird
  • 2,715
  • 5
  • 27
  • 51

1 Answers1

3

Inherit your class from WebView, override OnDraw method. See this answer for an example: Override onDraw to change how the drawing occurs (Android)

Community
  • 1
  • 1
Mikhail Naganov
  • 6,643
  • 1
  • 26
  • 26
  • that was my first guess but somewhere on here i read onDraw wont be of much help and that completely dissuaded me from trying it..i will try it tomorrow and let you know how it works. – thunderbird Apr 22 '15 at 18:45
  • Sorry for that! Drawing an html page is already an expensive task, so adding extra image processing without slowing everything down is not trivial. – Mikhail Naganov Apr 23 '15 at 08:41