android:textIsSelectable ="true" ListView内的TextView不能正常工作 [英] android:textIsSelectable="true" for TextView inside Listview does not work
本文介绍了android:textIsSelectable ="true" ListView内的TextView不能正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在下面的ListView中遇到TextView问题.
I have the problem with TextView inside ListView below.
在列表视图中,我有一个TextView并且已设置
In listview, I have a TextView and I have set
android:textIsSelectable="true"
但是,当我长时间单击TextView时,我会看到日志打印
But, when I long click on TextView, I see log print
TextView: TextView does not support text selection. Action mode cancelled.
所以我不能对TextView使用复制和粘贴功能.
So I can not use Copy and Paste function for TextView.
如果您有解决此问题的想法,请提供一些修复建议.
If you have any idea to resolve this issue, please give some hint to fix it.
非常感谢
推荐答案
TextView将宽度设置为"match_parent" android:layout_width="match_parent"
TextView sets the width to "match_parent" android:layout_width="match_parent"
这篇关于android:textIsSelectable ="true" ListView内的TextView不能正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文