安卓3.x。打开对话框时如何保留文本选择
显示对话框时,我通过双击选择的单词将失去选择。
一步一步:
- 我双击一个单词,选择该单词,屏幕顶部显示“文本选择”菜单。
- 我单击一个按钮并显示一个对话框。显示对话框后,选择将被清除。
请注意,如果我使用键盘选择文本,而不显示“文本选择”,则保留文本选择。此外,2.2 中保留了选择。仅在 3.x 上,当通过双击选择单词时才会出现此问题。
我该如何解决这个问题?
When dialog is shown, the word I selected by double click is losing selection.
Step-by-step:
- I double click on a word, the word is selected and "Text Selection" menu is shown at the top of the sreen.
- I click on a button and display a dialog. Once dialog is shown, the selection is cleared.
Notice, if I select text using keyboard in such way that "Text Selection" is NOT shown, then text selection is preserved. Also, selection is preserved on 2.2. The issue is only on 3.x when word selected by double click.
How can I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论