java - 如何在 AutoCompleteTextView Android 中选择所有文本
问题描述
我想在单击时选择全文AutoCompleteTextView
,
我用过android:selectAllOnFocus="true"
但没用。
解决方案
尝试这个
android:textIsSelectable="true"
android:focusable="true"
android:longClickable="true"
这适用于 TextView 但可能适用于 AutoCompletTextView
推荐阅读
- html - 将过滤器放在 ID 内的特定元素上
- java - 在 myFile.jar 中没有主要清单属性
- php - 如何在 Smarty 模板引擎中使用条件渲染 HTML 标签?
- javascript - 每次我向列表中添加一些项目时,如何将对象属性(在此示例中为 isbn)增加一:?
- multithreading - 多线程时如何安全地访问和修改数组?
- javascript - 如何测试不带参数的命令行应用程序?
- node.js - Node.js 将数据写入文件会引发错误
- google-search - 谷歌搜索显示 / 而不是标题和描述的索引
- c - 链表总是显示为空
- ios - 错误:Runner.xcworkspace 不存在。执行谷歌地图时出错