"Text selection mode" works the same for all types and devices

The documentation for WebView.emulateShiftHeld () says:

Use this method to set WebView to text selection mode. Do not rely on this functionality; it will be out of date in the future.

What does it mean to put WebView in text selection mode ?

To clarify:

  • Does the text selection mode work the same for WebView as in other views
  • Does the text selection mode work the same on the emulator as in other, real , devices?

In the emulator, for example, I bind a function to a menu item, and when I select this item (on the emulator) and start dragging the mouse over some text, I have 2 bold cursors (“handles”?), Indicating the beginning of the beginning and the end of the selection. When I press the end of the “hand”, I get a pop-up ball saying “Text copied to clipboard”.

+4
source share
1 answer

What does it mean to put WebView in text selection mode?

Your WebView is in select mode. This allows you to use to copy text to the clipboard. The last thing he can insert into some editors.

To clarify:

  • Does “Text Select Mode” work the same for WebView, as in other views?
  • Does the "text selection mode" work the same on the emulator, as in other, real devices?

Expect other WebViews to not support Select Text.

+1
source

Source: https://habr.com/ru/post/1342677/


All Articles