考虑的TextView是可选 [英] Consider TextView to be selectable

查看:141
本文介绍了考虑的TextView是可选的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下的警告(从皮棉)上的每个的TextView 在我的XMLS的ID。

I have the following warning (from the Lint) on each TextView with an ID in my XMLs.

考虑通过指定使文本值可选   机器人:textIsSelectable =真正的

Consider making the text value selectable by specifying android:textIsSelectable="true"

任何人都可以请为什么会突然做它(ADT的21.1)发生解释我? 为什么皮棉认为,我希望每个的TextView 要选择?

Can anyone please explain me why does it suddenly (from ADT 21.1) happening? Why does the Lint thinks that I want each TextView to be selectable?

编辑:我知道这是可以忽略不计,但我不认为这是一个解决方案

I know it can be ignored, but I don't think it's a solution.

推荐答案

如果您做出的TextView 可选,用户可以使用复制/粘贴就可以了。显然,皮棉开发者认为这是一件好事,让他们警告你,如果你不这样做。有很多皮棉警告信息,它们只是建议,这就是为什么有简便的方法把这些警告了。

If you make the TextView selectable, users can use copy/paste on it. Obviously the "lint" developers thought that was a good thing, so they warn you if you don't do it. There are lots of lint warnings that are just "suggestions", which is why there are easy ways to turn these warnings off.

这篇关于考虑的TextView是可选的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆