gpt4 book ai didi

android - "text selection mode"是否对所有 View 和设备都一样工作

转载 作者:太空宇宙 更新时间:2023-11-03 10:55:39 25 4
gpt4 key购买 nike

documentation对于 WebView.emulateShiftHeld() 说:

Use this method to put the WebView into text selection mode. Do not rely on this functionality; it will be deprecated in the future.

“将 WebView 置于文本选择模式”是什么意思?

澄清一下:

  1. “文本选择模式”是否有效WebView 和其他一样观看次数?
  2. “文本选择模式”是否有效在模拟器上和在其他真实设备?

例如,在模拟器上,我将该功能绑定(bind)到一个菜单项,当我选择该项目(在模拟器上)并开始将鼠标拖到一些文本上时,我有 2 个粗光标(“句柄”? ) 标记选择的开始和结束。当我单击末尾的“手”时,我收到一个弹出式气球,上面写着“文本已复制到剪贴板”。

最佳答案

“将 WebView 置于文本选择模式”是什么意思?

Your WebView translate into selection mode. Which enables uses to copy text into clipboard. Latter he might paste to pate in some editors.

澄清一下:

  1. “文本选择模式”对 WebView 的工作方式是否与其他 View 相同?
  2. “文本选择模式”在模拟器上的工作方式是否与在其他真实设备上相同?

Expect WebView other Views doesn't support "Text selection".

关于android - "text selection mode"是否对所有 View 和设备都一样工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5223369/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com