francoisg Active Member Licensed User Longtime User Apr 2, 2013 #1 Hi, I want to be able to catch specific events on a WebView (onScrollChanged) and other views as well (using reflection maybe?). Is it possible to do?
Hi, I want to be able to catch specific events on a WebView (onScrollChanged) and other views as well (using reflection maybe?). Is it possible to do?
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2013 #2 It depends on the specific view. WebView doesn't expose such an event. You can probably implement it by injecting some JavaScript code to WebView (with WebViewExtra). Upvote 0
It depends on the specific view. WebView doesn't expose such an event. You can probably implement it by injecting some JavaScript code to WebView (with WebViewExtra).
francoisg Active Member Licensed User Longtime User Apr 2, 2013 #3 Hi, yes - I see the event I mentioned is "protected" - any way to get notified on "protected" events? What about a view with normal events (public)? Upvote 0
Hi, yes - I see the event I mentioned is "protected" - any way to get notified on "protected" events? What about a view with normal events (public)?
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2013 #4 Where do you see this method for WebView? What about a view with normal events (public)? Click to expand... This event is already implemented for some of the views. Which view are you interested in? It is currently not possible to add this event with the Reflection library. Upvote 0
Where do you see this method for WebView? What about a view with normal events (public)? Click to expand... This event is already implemented for some of the views. Which view are you interested in? It is currently not possible to add this event with the Reflection library.
francoisg Active Member Licensed User Longtime User Apr 2, 2013 #5 I am looking at the Android WebView documentation (WebView | Android Developers) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2013 #6 You are correct. You can access this event by creating a library that subclasses WebView. Upvote 0
francoisg Active Member Licensed User Longtime User Apr 2, 2013 #7 Anyone interested in creating such a library??? - I would but my knowledge (and time) of java as a language is severely limited!!! I must be able to have views on a transparent panel follow content inside a web view. Thus ... I need a way of either - catching the web view onScroll event - set the scroll value of a web view manually - some other way that I'm not thinking of (maybe adding a view as a child of a web view - is that even possible using Android - I know it works for iOS but ...?) Upvote 0
Anyone interested in creating such a library??? - I would but my knowledge (and time) of java as a language is severely limited!!! I must be able to have views on a transparent panel follow content inside a web view. Thus ... I need a way of either - catching the web view onScroll event - set the scroll value of a web view manually - some other way that I'm not thinking of (maybe adding a view as a child of a web view - is that even possible using Android - I know it works for iOS but ...?)