How to programmatically select all WebView content?

Is there a way to programmatically select all WebView content?

I know how to put a WebView in "text selection mode". But this is done for the user to select manually.

If there is a way to programmatically select all WebView content, how do I do this?

+5
source share
2 answers

There is no way to select something in WebView programmatically.

+2
source

In Javascript, you can iterate over all the "elements" and call .select()for each of them. However, nothing special for Android.

+1

All Articles